file-storage

Create label

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

post/1.3/file-storage/{service-uuid}/labels

Request

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

Path parameters

service-uuidstring uuid required

The unique identifier.

Example:17fd43a5-a97e-44f7-98a8-0a787da67069

Service UUID

Request body

keystring required

Represents the label identifier. The key is unique within a service.

valuestring nullable required

Represents the label value.

Example request

{
  "key": "environment",
  "value": "production"
}

Response

Success

keystring
valuestring

Example response

{
  "key": "environment",
  "value": "production"
}

Changes

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