Skip to content
SoulFire LogoSoulFire

Set instance metadata entry

PUT
/v1/instances/{instance_id}/metadata/namespaces/{namespace}/entries/{key}

Sets a single persistent metadata entry for the instance. Creates the namespace and key if they don't exist, or updates if they do.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string

The unique identifier (UUID) of the instance.

Formatuuid
namespace*string

The namespace for the metadata entry.

key*string

The key for the metadata entry within the namespace.

Request Body

application/json
  1. body

Request to set a single persistent metadata entry for an instance.

value*unknown

The value to set. Supports JSON value types.

Response Body

Response after successfully setting an instance metadata entry.

application/json
  1. response

Response after successfully setting an instance metadata entry. Empty response indicates success.

Example Request
curl -X PUT 'http://127.0.0.1:38765/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/metadata/namespaces/string/entries/string' \
  -H 'Content-Type: application/json' \
  -d '{
  "value": null
}'
Example Response
{}

Was this page helpful?