PATCH/projects/api/v3/tasks/:taskId/workflows/:workflowId.json

Edits the position of a task in a stage

Body Params

MoveTaskRequest contains the id of the task to be moved and the id of the task after to calculate the position positionAfterTask: top of list = -1, other = taskId

    • Name
      positionAfterTask
      Type
      integer
    • Name
      stageId
      Type
      integer
    • Name
      taskId
      Type
      integer
    • Name
      workflowId
      Type
      integer

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
      Response contains information about a specific stage.
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      403
      Type
      object
      Schema
      Description
      403 Forbidden
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      404
      Description
      404 Not Found No Data
    • Code
      409
      Type
      object
      Schema
      Description
      409 Conflict
      ErrorResponse defines how []Error should be marshaled to JSON.

    Examples

    200 OK

    Response
    {
      "included": {
        "users": {
          "additionalProp": {
            "avatarUrl": "string",
            "canAddProjects": true,
            "company": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "companyId": 0,
            "companyRoleId": 0,
            "deleted": true,
            "email": "string",
            "firstName": "string",
            "id": 0,
            "isAdmin": true,
            "isClientUser": true,
            "isServiceAccount": true,
            "lastName": "string",
            "lengthOfDay": 0,
            "meta": {},
            "teams": [
              {
                "id": 0,
                "meta": {},
                "type": "string"
              }
            ],
            "timezone": "string",
            "title": "string",
            "type": "string",
            "userCost": 0,
            "userRate": 0,
            "workingHour": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "workingHoursId": 0
          }
        },
        "workflows": {
          "additionalProp": {
            "createdAt": "string",
            "createdBy": 0,
            "defaultWorkflow": true,
            "id": 0,
            "lockdown": {
              "id": 0,
              "meta": {},
              "type": "string"
            },
            "name": "string",
            "projectIds": [
              0
            ],
            "projectSpecific": true,
            "stages": [
              {
                "id": 0,
                "meta": {},
                "type": "string"
              }
            ],
            "status": "string",
            "updatedAt": "string",
            "updatedBy": 0
          }
        }
      },
      "stage": {
        "color": "string",
        "createdAt": "string",
        "createdBy": 0,
        "deletedAt": "string",
        "deletedBy": 0,
        "displayOrder": 0,
        "id": 0,
        "name": "string",
        "showCompletedTasks": true,
        "taskIds": [
          0
        ],
        "updatedAt": "string",
        "updatedBy": 0,
        "workflow": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      }
    }