This resource allows you to apply tags to containers in Octopi. If the tag doesn’t exist in Octopi, it will be created.

Supported Formats

json

POST /api/v1/containers/:container_number/tags.json
Apply tags to containers in Octopi.

This API endpoint allows you to apply tags to containers.

Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Not found.
500 Server crashed for some reason.

Examples

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"]
  }
}

Params

Param name Description
tags
optional

Validations:

  • Must be an array of any type