SuperAI Flow Platform

Sections

Theme switcher

Add or remove task tags in batch

Header Parameters

Authorizationstring

Body Parameters

tagsarray Required

Array of tag operations to perform in a single atomic transaction. Each item specifies an 'add' or 'remove' operation for a specific task. Operations processed sequentially; all succeed or all fail together.

Batch benefits:

  • Single database transaction for consistency
  • Reduced network overhead (one request vs many)
  • Atomic operations (no partial failures)

Mixed operations supported:

  • Add tags to multiple tasks
  • Remove tags from multiple tasks
  • Add and remove different tags in ...
Min items
1
Max items
100

Show child attributes

Response

200
Object
Task tags successfully updated

Response Attributes

tagsarray Required

Array of operation results in request array order. Each element corresponds to the tag operation at the same index in the request.

Response structure:

  • Length: Always equals request.tags length
  • Order: Preserves request order (response[i] is result of request.tags[i])
  • Content: Each item contains 'status' field indicating operation outcome

Example mapping: Request: [add_tag1, remove_tag2, add_tag3] Response: [status1, status2, status3]

All operations complete (no partial failure...

Show child attributes

400
Object
Bad Request - Invalid tag operation or missing required fields

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
404
Object
Not Found - The requested resource does not exist

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
422
Object
Validation Error

Response Attributes

detailarray

Show child attributes

500
Object
Internal Server Error - An unexpected error occurred

Response Attributes

errorobject Required

Standard error detail structure.

This model matches the error format returned by the centralized exception handlers in app/api/errors/handlers.py.

Show child attributes

request_idnull
Was this section helpful?

What made this section unhelpful for you?

PATCH

/

Select
1

Response

Was this section helpful?

What made this section unhelpful for you?

View as Markdown

Ask an AI

Open in ChatGPTOpen in ClaudeOpen in Perplexity

Code with AI

Open in Copilot