Approve with modifications
const url = 'https://api.ultimateteam.ai/api/v1/approvals/example/modify';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"approval_token":"example","feedback":"example","modifications":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ultimateteam.ai/api/v1/approvals/example/modify \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "approval_token": "example", "feedback": "example", "modifications": "example" }'Approves a pending action but requests modifications before execution.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The approval item ID to modify
The approval item ID to modify
Request Bodyrequired
Section titled “Request Bodyrequired”Request body for approving an action with modifications.
Attributes: modifications: What should be changed before execution. feedback: Why the modifications are needed.
object
Examplegenerated
{ "approval_token": "example", "feedback": "example", "modifications": "example"}Responses
Section titled “ Responses ”Successful Response
Envelope response for approval action endpoints.
Attributes: data: The approval decision payload. meta: Standard response metadata.
object
Inner data payload for approval decision responses.
Attributes: decision: The decision made (approved, rejected, modified). decision_id: The ID of the approval that was acted on. action_type: The action type that was decided on. feedback: Owner feedback, if provided. reason: Rejection reason, if applicable. modifications: Requested modifications, if applicable. execution_result: Result of executing the action, if available.
Standard metadata included in every API response.
Attributes: request_id: Unique identifier for this request. timestamp: When the response was generated.
object
Unique identifier for this request
When the response was generated
Examplegenerated
{ "data": { "action_type": "example", "decision": "example", "decision_id": "example", "execution_result": {}, "feedback": "example", "modifications": "example", "reason": "example" }, "meta": { "request_id": "example", "timestamp": "2026-04-15T12:00:00Z" }}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}