Skip to content
Flow Tickets

Update Policies With Ticket

Updates the permission policies associated with the specified ticket.

Request parameters

  • Required: ticketId (ticket ID) and keys (the list of policy keys, submitted as a JSON array).
  • See each field's own documentation for format, accepted values, and business meaning.

Business notes

This is a shared endpoint of the common ticket-approval system. It replaces the ticket's bound permission policies wholesale with the provided keys list.

Risk warning

This changes the permission policies bound to the ticket, which may affect its authorization scope and subsequent handling. Confirm the target ticket and the policy-key list before calling.

Result

On success, the ticket's permission policies are updated; the resulting state and returned data follow the 200 response definition.

POSThttps://b-api.lbkrs.com/admin-api/v2/tickets/{ticketId}/update_policies

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Parameters

ticketIdstringRequired

Path parameter.

Request body application/json

keysarray<string>required

Submit Policy Keys as a JSON array. This field is required.

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs