/// <summary> /// Edits a note. Notes can be edited by any user if posted to a chat. the user belongs to. /// HTTP Method: patch /// Endpoint: /restapi/{apiVersion}/glip/notes/{noteId} /// Rate Limit Group: Medium /// App Permission: TeamMessaging /// User Permission: UnifiedAppDesktop /// </summary> public async Task <GlipNoteInfo> Patch(GlipNoteCreate glipNoteCreate, RestRequestConfig restRequestConfig = null) { if (noteId == null) { throw new ArgumentException("Parameter cannot be null", nameof(noteId)); } return(await rc.Patch <GlipNoteInfo>(Path(), glipNoteCreate, null, restRequestConfig)); }
/// <summary> /// Creates a new note in the specified chat. /// HTTP Method: post /// Endpoint: /restapi/{apiVersion}/glip/chats/{chatId}/notes /// Rate Limit Group: Medium /// App Permission: TeamMessaging /// User Permission: UnifiedAppDesktop /// </summary> public async Task <GlipNoteInfo> Post(GlipNoteCreate glipNoteCreate, RestRequestConfig restRequestConfig = null) { return(await rc.Post <GlipNoteInfo>(Path(), glipNoteCreate, null, restRequestConfig)); }