This repository has been archived on 2023-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
go-sdk/docs/AssigneesApi.md

4.9 KiB

\AssigneesApi

All URIs are relative to https://localhost/api/v1

Method HTTP request Description
TasksTaskIDAssigneesBulkPost Post /tasks/{taskID}/assignees/bulk Add multiple new assignees to a task
TasksTaskIDAssigneesGet Get /tasks/{taskID}/assignees Get all assignees for a task
TasksTaskIDAssigneesPut Put /tasks/{taskID}/assignees Add a new assignee to a task
TasksTaskIDAssigneesUserIDDelete Delete /tasks/{taskID}/assignees/{userID} Delete an assignee

TasksTaskIDAssigneesBulkPost

ModelsTaskAssginee TasksTaskIDAssigneesBulkPost(ctx, assignee, taskID) Add multiple new assignees to a task

Adds multiple new assignees to a task. The assignee needs to have access to the list, the doer must be able to edit this task. Every user not in the list will be unassigned from the task, pass an empty array to unassign everyone.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
assignee ModelsBulkAssignees The array of assignees
taskID int32 Task ID

Return type

ModelsTaskAssginee

Authorization

JWTKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

TasksTaskIDAssigneesGet

[]ModelsUser TasksTaskIDAssigneesGet(ctx, taskID, optional) Get all assignees for a task

Returns an array with all assignees for this task.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
taskID int32 Task ID
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
taskID int32 Task ID
p int32 The page number. Used for pagination. If not provided, the first page of results is returned.
s string Search assignees by their username.

Return type

**[]ModelsUser**

Authorization

JWTKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

TasksTaskIDAssigneesPut

ModelsTaskAssginee TasksTaskIDAssigneesPut(ctx, assignee, taskID) Add a new assignee to a task

Adds a new assignee to a task. The assignee needs to have access to the list, the doer must be able to edit this task.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
assignee ModelsTaskAssginee The assingee object
taskID int32 Task ID

Return type

ModelsTaskAssginee

Authorization

JWTKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

TasksTaskIDAssigneesUserIDDelete

ModelsMessage TasksTaskIDAssigneesUserIDDelete(ctx, taskID, userID) Delete an assignee

Un-assign a user from a task.

Required Parameters

Name Type Description Notes
ctx context.Context context for logging, tracing, authentication, etc.
taskID int32 Task ID
userID int32 Assignee user ID

Return type

ModelsMessage

Authorization

JWTKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]