Skip to main content
PUT
Update one or more fields of a key resource

Authorizations

Authorization
string
header
required

The primary authentication method for the Mezmo API.

Pass the key in the Authorization header in the format Token <ACCESS TOKEN>. For example:

This key is used for all APIs with the exception of ingest.

Path Parameters

id
string
required

The id of the key to update The ID of the key

Example:

"629e3f7e62295be60488fb26"

Body

application/json
name
string

A user friendly name for the key

Maximum string length: 30
Example:

"servergroup_0_ingestion"

Response

The update was successful; the key resource is returned with updated fields.

id
string

The ID of the key

Example:

"629e3f7e62295be60488fb26"

key
string

A secret key which can be used to authenticate requests to Mezmo.

Example:

"7b273eb8adc962f2711ad760730debb0"

name
string

A user friendly name for the key

Maximum string length: 30
Example:

"servergroup_0_ingestion"

type
enum<string>

The type of the key

Available options:
ingestion,
service
Example:

"ingestion"

created
integer

The time the key was created as a Unix timestamp in milliseconds

Example:

1654538253244