Skip to main content

list-labels

restish dci list-labels [flags]

Returns a list of labels that your account has access to. Labels are listed in reverse chronological order by default.

Flags

--max-results: (string default:"500")

--page-token: (string)

--filter: (string)

--sort-by: (string enum:"id","name","type","createTime","updateTime")

--sort-order: (string enum:"asc","desc")

Responses

200 (application/json)

OK - The request succeeded.

{
"type": "object",
"properties": {
"pageToken": {
"type": "string",
"description": "Page token, returned by a previous call, to request the next page of results"
},
"rowCount": {
"type": "integer",
"description": "Total number of labels in the result set"
},
"labels": {
"type": "array",
"items": {
"required": [
"id",
"name",
"color"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the label"
},
"name": {
"type": "string",
"description": "The name of the label"
},
"color": {
"type": "string",
"enum": [
"blue",
"skyBlue",
"teal",
"mint",
"lime",
"softYellow",
"apricot",
"lavendar",
"purple",
"rosePink",
"slateGrey"
],
"description": "The color of the label"
},
"type": {
"type": "string",
"enum": [
"custom",
"preset"
],
"description": "The type of the label (custom or preset)"
},
"createTime": {
"type": "string",
"format": "date-time",
"description": "The time when the label was created"
},
"updateTime": {
"type": "string",
"format": "date-time",
"description": "The time when the label was last updated"
}
}
}
}
}
}

400 (application/json)

Bad Request - The server cannot process the request, often due to a malformed request.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

401 (application/json)

Unauthorized - Invalid API key.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

403 (application/json)

Forbidden - The client is not authorized to perform the request.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

404 (application/json)

Not Found - The requested resource does not exist.

{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Detailed error message."
}
}
}

Aliases: list-labels, listlabels