{
  "opencollection": "1.0.0",
  "info": {
    "name": "emnify REST subpackage_applicationTokens subpackage_tagManagement API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "subpackage_tagManagement",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Bulk assign tags",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cdn.emnify.net/api/v2/bulk-operations/endpoint/add-tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assigns tags in bulk to multiple endpoints.\n"
        },
        {
          "info": {
            "name": "Bulk unassign tags",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cdn.emnify.net/api/v2/bulk-operations/endpoint/remove-tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Unassign tags from multiple endpoints in bulk.\n"
        },
        {
          "info": {
            "name": "Bulk delete tags",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cdn.emnify.net/api/v2/bulk-operations/tag/delete-tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deletes tags in bulk.\n"
        },
        {
          "info": {
            "name": "List endpoint tags",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://cdn.emnify.net/api/v2/endpoint/:endpoint_id/tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "endpoint_id",
                "value": "",
                "type": "path",
                "description": "Numeric ID of an endpoint"
              }
            ]
          },
          "docs": "Returns a list of tags assigned to the provided endpoint.\n"
        },
        {
          "info": {
            "name": "Assign a tag to an endpoint",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cdn.emnify.net/api/v2/endpoint/:endpoint_id/tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "endpoint_id",
                "value": "",
                "type": "path",
                "description": "Numeric ID of an endpoint"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assigns a tag to the provided endpoint.\nTo successfully assign a tag, you must include the tag's ID in the request body.\n"
        },
        {
          "info": {
            "name": "Unassign a tag from an endpoint",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://cdn.emnify.net/api/v2/endpoint/:endpoint_id/tags/:tag_id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "endpoint_id",
                "value": "",
                "type": "path",
                "description": "Numeric ID of an endpoint"
              },
              {
                "name": "tag_id",
                "value": "",
                "type": "path",
                "description": "The tag ID"
              }
            ]
          },
          "docs": "Unassigns a tag from the provided endpoint.\nTo successfully unassign a tag, you must include the tag's ID in the request body.\n"
        },
        {
          "info": {
            "name": "Returns the list of available tag colors",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://cdn.emnify.net/api/v2/tag-colors",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ]
          },
          "docs": "Returns the list of available tag colors"
        },
        {
          "info": {
            "name": "List tags",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://cdn.emnify.net/api/v2/tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "The tag name"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Current page number"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Defines the number of items per page"
              }
            ]
          },
          "docs": "Returns a list of all registered tags within the organization.\n"
        },
        {
          "info": {
            "name": "Create a tag",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://cdn.emnify.net/api/v2/tags",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a tag with the given name and color ID.\n\nIf no color ID is provided, a random color is assigned to the tag.\n"
        },
        {
          "info": {
            "name": "Update a tag",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://cdn.emnify.net/api/v2/tags/:tag_id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "tag_id",
                "value": "",
                "type": "path",
                "description": "The tag ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a tag with the provided name and color ID.\n"
        },
        {
          "info": {
            "name": "Delete a tag",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://cdn.emnify.net/api/v2/tags/:tag_id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "tag_id",
                "value": "",
                "type": "path",
                "description": "The tag ID"
              }
            ]
          },
          "docs": "Deletes a tag and it removes all associations with resources (for example, devices or automations).\n"
        }
      ]
    }
  ],
  "bundled": true
}