https://b-api.lbkrs.com/sass/announcement/addAuthorization
Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.
Permission
The Broker ACCESS_TOKEN must be granted the permission above, or the call will be rejected.
Request body application/json
Display channels. The frontend sets <platform>: true for each selected platform and, for ios, android, pc, and port_pc, optional <platform>_low and <platform>_up version bounds.
Child attributes
Selected platforms: all, ios, android, pc, port_pc, h5, or web. The frontend defaults to ["all"].
Whether the customer can close the announcement. The frontend defaults to false.
Priority. A larger value means a higher priority. The frontend defaults to 0.
Remark
Display start time, as a Unix timestamp in seconds.
Display end time, as a Unix timestamp in seconds.
Title, as a JSON-encoded multilingual object.
Content, as a JSON-encoded multilingual object. The frontend sends {} when empty.
Rich-text content, as a JSON-encoded multilingual object. The frontend sends {} when empty.
Display conditions, as a JSON-encoded object. Depending on announcement_type, the frontend fills markets, positions, and counter_ids.
Announcement type. Values come from the announcement_types reference options.
Redirect link
Enable status. Values come from the announcement_global_status reference options.
Button text, as a JSON-encoded multilingual object.
Target user scope.
Child attributes
user_scope.org_ids
user_scope.app_ids
user_scope.account_channel
user_scope.user_cluster
Audit context submitted by the frontend for the audit log, containing before and value.
Callback URL supplied by the caller for redirecting or returning the review result after approval completes.
Responses
HTTP 200The request was processed successfully. The response data does not contain additional business fields.codemessagedatadataobjectdata structureNo nested fields
HTTP 400Bad request. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields
HTTP 401The user is not authenticated, or the login session has expired.codemessagedatadataobjectdata structureNo nested fields
HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.codemessagedatadataobjectdata structureNo nested fields
HTTP 408The request timed out. Check the business error code in code and the error details in message.codemessagedatadataobjectdata structureNo nested fields