Edit an authorized subscription label
/{namespace}/{principalType}/{principalId}/subscriptions/{subscriptionId}Changes the label only. Preserves the ID, original host arguments, query, target, generation and activation sequence. Refresh and unsubscribe continue to resolve the original host identity.
Required scope
subscription:writeReturns
200
Edit an authorized subscription label
Fields
- query
QueryRequired Shared Port OS query AST modeled as a recursive JSON graph supporting match, comparison, pattern, freeform, and boolean operators.
- context
object Structured filter criteria for granular device event matching. Keys are dot-notation paths into the message (e.g., "header.namespace", "header.name"). Values are the expected values to match. All context entries must match for the subscription to fire. Omitting context matches all events.
Errors
400 BAD_REQUESTInvalid request; stable code identifies the validation failure.
Check the request fields and any validation details, then correct the payload.
401 UNAUTHORIZEDAuthentication required.
Obtain a valid access token, then retry.
403 FORBIDDENResource authorization denied.
Check the linked account and its permissions for the device or resource.
404 NOT_FOUNDResource inaccessible, missing or past retention.
Verify the target identifier and that its endpoint or plugin route still exists.
409 CONCURRENT_MODIFICATIONsubscription_identity_immutable: request attempts to change monitoring identity. Existing binding and queued jobs are untouched.
Check the device’s current mode or state. Retry only after the conflict is resolved.
500 INTERNALInternal failure.
Retry with backoff only when the operation is safe to repeat. Include the error code when reporting persistent failures.