Skip to content

Apply a Desktop ACP plan decision

POST
/api/workspaces/{id}/acp-plan-grant
curl --request POST \
--url http://localhost:8080/api/workspaces/example/acp-plan-grant \
--header 'Content-Type: application/json' \
--cookie auth_session=<auth_session> \
--data '{ "agentSessionId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "decision": "approve", "planMarkdown": "example", "grants": [ "artifact-write" ] }'
id
required
string
Media typeapplication/json
object
agentSessionId
required
string format: uuid
decision
required
string
Allowed values: approve request_changes cancel
planMarkdown
string
<= 100000 characters
grants
Array<string>
Allowed values: artifact-write warehouse-write git-write schedule-write workflows-run

Successful response

Media typeapplication/json
object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
error
string

Example

{
"message": "Operation completed",
"error": "Error message"
}

Invalid request

Media typeapplication/json
object
success
boolean
error
string

Example

{
"error": "Error message"
}

Internal server error

Media typeapplication/json
object
success
boolean
error
string

Example

{
"error": "Error message"
}