Update an auth link draft
/{namespace}/{principalType}/{principalId}/auth-links/{authLinkId}/update-draftUpdates a DRAFT auth link. Omitted fields are unchanged. The link must still be a DRAFT and the If-Match etag must match its current version; the wildcard If-Match: * is not accepted. Requires the plugin-establish-link permission, evaluated with the variant and regionalization as operation context.
Required scope
Any authenticated access token
Header parameters
- If-Match
stringRequired The quoted strong entity tag of the resource the client last read (its `etag` field or `ETag` response header). The mutation is applied only when it still matches: a stale value returns 412 PRECONDITION_FAILED and a missing header returns 428 PRECONDITION_REQUIRED. `*` matches any current version of an existing group (RFC 9110), for a deliberate last-writer-wins change.
minLength: 1
Request body
Fields
Returns
200
Draft auth link updated
Fields
Response headers
- ETag
string Opaque strong entity tag of the returned resource version. Send it back in `If-Match` on the next mutation of the same resource.
Errors
403 FORBIDDENForbidden - insufficient permissions
Check the linked account and its permissions for the device or resource.
404 NOT_FOUNDAuth link not found
Verify the target identifier and that its endpoint or plugin route still exists.
409 CONFLICTThe auth link is not a DRAFT
Check the device’s current mode or state. Retry only after the conflict is resolved.
412 PRECONDITION_FAILEDThe If-Match etag does not match the current auth link version; re-read the link and retry
Inspect the returned code and family and follow the error handling guide.
428 PRECONDITION_REQUIREDThe If-Match header is missing, or is the wildcard *; send the etag of the draft you last read
Inspect the returned code and family and follow the error handling guide.