POST
/
use-cases
/
{id}
/
labels
curl --request POST \
  --url https://app.happyrobot.ai/api/v1/use-cases/{id}/labels \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "name": "<string>",
  "color": "slate"
}'
This response has no body data.

Headers

authorization
string
required

Your API key for authentication. Use Bearer format.

Path Parameters

id
string
required

ID of the use case.

Body

application/json
name
string
required

Name of the label.

color
enum<string>

Color of the label.

Available options:
slate,
gray,
zinc,
neutral,
stone,
red,
orange,
amber,
yellow,
lime,
green,
teal,
cyan,
sky,
blue,
indigo,
violet,
purple,
fuchsia,
pink,
rose