Supported Formats

json

POST /api/tasks/:task_id/content_parts/:id
Updates content part.

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Task not found
404 ContentPart not found
422 Unprocessable Content Part

Params

Param name Description
task_id
required

Task id.

Validations:

  • Must be a String

id
required

Content part id

Validations:

  • Must be a String

content_part
required

Content part parameter container

Validations:

  • Must be an Array of nested elements

content_part[text]
required

Content part text

Validations:

  • Must be a String

content_part[image]
optional

Content part image

Validations:

  • Must be a File

content_part[remote_image_url]
optional

Remote image for content part

Validations:

  • Must be a String


GET /api/tasks/:task_id/content_parts
Lists content parts of the given task.

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Task not found.

Params

Param name Description
task_id
required

Task id.

Validations:

  • Must be a String


POST /api/tasks/:task_id/content_parts/multi_persist
Accepts multiple parts at the same time.

Supported Formats

json

Errors

Code Description
401 Unauthorized
403 Forbidden
404 Task not found
422 Unprocessable Content Part

Params

Param name Description
task_id
required

Task id.

Validations:

  • Must be a String

content_part
required

Content part parameter container

Validations:

  • Must be an Array of nested elements

content_part[id]
required

Content part id.

Validations:

  • Must be a String

content_part[text]
required

Content part text

Validations:

  • Must be a String