Create snapshot label

Adds one or more labels to a snapshot of the library. Existing labels of the snapshot are kept. Requires read-write permission on the library.

Note: The API also works if snapshot labels are not shown in the web interface. That setting (off by default) only controls whether the web interface shows labels and whether the library history (GET /api/v2.1/repos/{repo_id}/history/) returns them in the field tags.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The unique identifier of a library

string

ID of the snapshot (commit). Defaults to the current head commit of the library if empty or omitted.

string
required

Label names, comma separated. Each name may only contain letters, digits, dot, hyphen and underscore. Must not be empty.

Headers
string
enum
Defaults to application/json

Generated from available request content types

Allowed:
Responses

Language
Credentials
Bearer
Account-Token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json