Skip to main content
Monitoring & Collection/Hardware

UpdateHardwareCredential

Update a credential using its resource revision. Omit secret to retain it, or supply a complete replacement. Credential type is immutable. Requires a platform administrator.

PUT/api/v1/hardware/credentials/{uuid}

Operation ID

UpdateHardwareCredential

Since

1.3.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Path Parameters

  • uuid
    StringRequired

    UUID of the Hardware credential to update.

Body Fields

Required JSON fields: name (string), expected_resource_revision (int64, preferably its decimal string from GET resourceRevision). Optional secret is a complete replacement; omit it to retain the current secret. Unknown fields, including credential_type and uuid, are rejected. Example: {"name":"renamed","expected_resource_revision":"1"}

Request body root type: object

Responses

200 OK

A successful response.

Content-Type: application/json

Response body root type: object

  • uuid
    String

    UUID of the Hardware credential; never contains authentication data.

    Example: value

  • name
    String

    Administrator-defined display name for this credential.

    Example: my-resource

  • credentialType
    String

    Credential type for this resource

    Example: value

  • resourceRevision
    String

    Resource revision for this resource

    Example: 10

    {"format":"int64"}

  • credentialRevision
    String

    Credential revision for this resource

    Example: 10

    {"format":"int64"}

  • referencedTargetCount
    String

    Referenced target count for this resource

    Example: 10

    {"format":"int64"}