This resource allows you to apply tags to containers in Octopi. If the tag doesn’t exist in Octopi, it will be created.
This API endpoint allows you to apply tags to containers.
Code | Description |
---|---|
400 | Bad Request. |
404 | Not found. |
500 | Server crashed for some reason. |
curl "https://app.octopi.co/api/v1/containers/:container_number/tags.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE" -d '{"tags": ["TAG1", "TAG2"]}'
{ "container": { "number": "CONTAINER_NUMBER", "tags": ["TAG1", "TAG2"] } }
Param name | Description |
---|---|
tags optional |
Validations:
|