Skip to Content
APIEndpointsSet task owner

Set task owner

Assign which workspace member owns a task, or clear the assignment.

PATCH /brands/{brand_id}/tasks/{task_id}/owner

Authorization

HeaderTypeRequired
AuthorizationBearer asky_sk_…required
Idempotency-Keystringrequired on every write. See Idempotency

Path parameters

ParameterTypeRequiredDescription
brand_iduuidrequiredFrom List brands
task_iduuidrequiredA task’s id, visible in the app’s Action Hub (/actions/plan)

Body parameters

ParameterTypeRequiredDescription
owner_iduuid | nulloptionalA member of this brand’s workspace. null or omit to unassign

Request

curl --request PATCH \ --url 'https://api.askylabs.com/v1/brands/242546de-4cee-4a7d-952e-f6aa60c63ef8/tasks/7c1e9a3f-5b21-4d90-8c6e-1f4a2b8d5e73/owner' \ --header 'Authorization: Bearer <api-key>' \ --header 'Idempotency-Key: 5b0e77d2-13a9-4f6a-8ce1-9a3f5e21c0aa' \ --header 'Content-Type: application/json' \ --data '{"owner_id": "3d6c38f7-184d-4aeb-aea1-bb8f4809eace"}'

Response

{ "data": { "task_id": "7c1e9a3f-5b21-4d90-8c6e-1f4a2b8d5e73", "owner_id": "3d6c38f7-184d-4aeb-aea1-bb8f4809eace" }, "request_id": "req_5b0e77d213a94f6a8ce1" }

Response fields

FieldTypeDescription
data.task_iduuidrequired
data.owner_iduuid | nullThe owner it was set to, null if unassigned
request_idstringrequired. Also returned as the x-request-id header. Quote it when contacting support

Errors

StatusCodeWhen
400invalid_requestowner_id is not a member of this brand’s workspace
401invalid_tokenThe key is missing, malformed, or does not exist
401token_expiredThe key passed its expiry date
401token_revokedThe key was revoked
403insufficient_scopeThe key does not carry write:opportunities
403plan_requiredThis workspace is not enabled for API writes
404not_foundThe task does not exist for this brand, or this key is not allowed to reach it
429rate_limitedOver 60 requests per minute on write endpoints
Last updated on