Skip to content
Hexel StudioDocs

Update device push

POST/titan/user/devices/{id}:push

Change a phone's push token: proof is a compact JWS with header exactly {alg: ES256, kid: the device_id, typ: titan-device-push+jwt}, signed by that phone, over {aud, sub, device_id, push_provider, push_token, app_id (optional), apns_environment (optional), iat, exp}; it replaces the whole push target, and its iat must be newer than the last accepted update. Authorized by the caller's own user-route token; a device belongs to the token's subject and another person's is NOT_FOUND; NOT_FOUND unless phone enrollment is on.

Path parameters

idstring

Headers

Bearer <token>. The person's user-route token: a user access token from the deployment's identity provider for an audience only the person routes accept, carrying their use claim. The Gateway verifies it; the edge does not. A session's token is refused here, and a user-route token is refused as a session's. Served only while the deployment turns the person routes on; NOT_FOUND otherwise.

Body parameters

proofstring

Returns

200Successful response; exact status varies by operation.object

attestationoptional object

What the phone's key attestation said at enrollment; present for a phone enrolled where the deployment required one at the time. null (with attestation_missing) for a phone without one where the deployment now requires attestation; absent elsewhere

attestation_missingoptional boolean

present (true) only where the deployment requires attestation and this phone has none (enrolled before): under the deployment's unattested_phones allow it is still trusted; under refuse_signatures its decisions, endorsements, logins and revocations of another trusted phone are refused (DEVICE_ATTESTATION_REQUIRED) until it is re-enrolled with an attestation

One of: true

created_atstringdate-time
device_idstring
labelstring
last_seen_atoptional stringdate-time
platformstring

One of: "ios", "android"

push_apns_environmentoptional string

One of: "sandbox", "production"

push_app_idoptional string
push_delivery_erroroptional string

The last push delivery failure to this phone: a status or transport error, never a response body

push_delivery_error_atoptional stringdate-time
revoked_atoptional stringdate-time
statestring

One of: "active", "revoked"

trusted_atstringdate-time

Errors

  • defaultRejected request.