object-storage-2

Create label

Creates a new label by given {service_uuid}. Labels are used for service filtering.

post/1.3/object-storage-2/{service-uuid}/labels

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/object-storage-2/{service-uuid}/labels
  • Auth: HTTP bearer

Path parameters

service-uuidstring uuid required

The unique identifier for the service.

Example:01234567-89ab-cdef-0123-456789abcdef

Service UUID

Request body

keystring required

The key of a label.

valuestring nullable required

Schema for a label value property, allowing a string or null with specific character constraints.

Example request

{
  "key": "foo",
  "value": "bar"
}

Response

Created

keystring
valuestring

Example response

{
  "key": "foo",
  "value": "bar"
}

Changes

No recorded changes to this operation across all 1 revision of this API.