ReferenceAPI referenceWorkflows
Apply an available action to a work item
POST
/organizations/{organization_id}/work-items/{work_item_id}/actionstasuku_session<token>
In: cookie
Path Parameters
organization_id*string
Length
1 <= length <= 128work_item_id*string
Length
1 <= length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/organizations/string/work-items/string/actions" \ -H "Content-Type: application/json" \ -d '{ "action": "APPROVE" }'{ "data": { "id": "string", "organization_id": "string", "title": "string", "kind": "QUESTION", "state": "OPEN", "phase": "INTAKE", "waiting_reason": "CONTEXT", "active_run_id": "string", "available_actions": [ "APPROVE" ], "source": "GITHUB", "primary_repository_id": "string", "requested_by_login": "string", "source_url": "http://example.com", "summary": "string", "completed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }}