Skip to main content
POST
/
api
/
task
Crear Tarea
curl --request POST \
  --url https://api.plazbot.com/api/task \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "workspaceId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "notes": "<string>",
  "expirationDate": "2023-11-07T05:31:56Z",
  "assignedUserId": "<string>",
  "contactId": "<string>"
}
'
{
  "success": true,
  "code": 123,
  "errorCode": "<string>",
  "message": "<string>",
  "data": {
    "taskId": "<string>",
    "task": {
      "id": "<string>",
      "workspaceId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "creationDate": "2023-11-07T05:31:56Z",
      "updatedDate": "2023-11-07T05:31:56Z",
      "expirationDate": "2023-11-07T05:31:56Z",
      "statusId": 123,
      "notes": "<string>",
      "asignedUsers": [
        "<string>"
      ],
      "projectStatusId": "<string>",
      "files": [
        "<string>"
      ],
      "project": [
        "<string>"
      ],
      "subTask": [
        "<string>"
      ],
      "orderInCards": 123,
      "orderInCardsLastUpdated": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Token de autenticacion Bearer. Obtenga el token usando el endpoint /api/user/login

Headers

x-workspace-id
string
required

Identificador del workspace

Body

application/json
workspaceId
string
required

Identificador del workspace

name
string
required

Nombre de la tarea

description
string
required

Descripcion de la tarea

notes
string | null

Notas adicionales de la tarea

expirationDate
string<date-time> | null

Fecha de vencimiento

assignedUserId
string | null

ID del usuario asignado

contactId
string | null

ID del contacto asociado

Response

Tarea creada exitosamente

success
boolean
required

Indica si la operacion fue exitosa

code
integer
required

Codigo HTTP de la respuesta

errorCode
string | null
required

Codigo de error, null si no hay error

message
string
required

Mensaje descriptivo del resultado

data
object
required