Set allocator metadata item
Adds or updates a single item in the allocator metadata.
Path parameters
-
allocator_id
string Required The allocator identifier.
-
key
string Required The metadata item key.
Query parameters
-
version
string Checks for conflicts against the metadata version, then returns the value in the
x-cloud-resource-version
header.
Responses
-
200 application/json
The allocator metadata was successfully changed (the updated JSON is returned)
-
400 application/json
The value specified for the metadata tag is empty. (code:
allocators.invalid_empty_metadata_item
) -
404 application/json
- The allocator specified by {allocator_id} cannot be found. (code:
allocators.allocator_not_found
) - The metadata item specified by {key} cannot be found. (code:
allocators.metadata_item_not_found
)
- The allocator specified by {allocator_id} cannot be found. (code:
PUT
/platform/infrastructure/allocators/{allocator_id}/metadata/{key}
curl \
--request PUT 'https://{{hostname}}/api/v1/platform/infrastructure/allocators/{allocator_id}/metadata/{key}' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"value":"string"}'