PATCH/spaces/api/v1/tags/{tagID}.json

update a single tag by ID

Path Params

  • Name
    tagID
    Type
    integer
    required
    Description

Body Params

    • Name
      tag
      Type
      object
      Description
      TagUpdate is used when updating a tag. The TagId to be updated is taken from the API endpoint PATCH and the args to be updated name and color are sent in the body.

    Request Examples

    Example Request

    PATCH
    /spaces/api/v1/tags/{tagID}.json
    curl --request GET \
         --url https://{site_name}.teamwork.com/tags.json

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
    • Code
      404
      Type
      object
      Schema
      Description
      404 Not Found
    • Code
      500
      Type
      object
      Schema
      Description
      500 Internal Server Error

    Examples

    200 OK

    Tag
    {
      "tag": {
        "color": "string",
        "createdAt": "2025-02-11T11:36:38.358Z",
        "createdBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "deletedAt": "2025-02-11T11:36:38.358Z",
        "deletedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "id": 0,
        "name": "string",
        "pageCount": 0,
        "updatedAt": "2025-02-11T11:36:38.358Z",
        "updatedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      }
    }