Autional Autional
API Reference GitHub autional.com →

PUT /communication/push-tokens/{template_id}

Update the activation status (is_active) of a specified push token. After deactivation, the token will no longer receive pushes; reactivation restores it. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.

Communication Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Push token ID

Request Body

Schema: dto.UpdatePushTokenRequest

FieldTypeRequiredExampleConstraintsDescription
user_id string Yes usr_abc123
is_active boolean No True

Responses

StatusDescriptionSchema
200Update successfuldto.OKResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.SimpleResponse
404Token not founddto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.OKResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 0
message string No success

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No