Tag


Tag Entity

  • Name
    id
    Type
    string
    Required
    Description

    Every tag is assigned a unique identifier - an unsigned 64-bit integer known as the Tag ID. This specific number is exclusive and distinct across the entire system, ensuring an unparalleled level of uniqueness.

  • Name
    name
    Type
    string
    Required
    Description

    The name or label of the tag.

  • Name
    created_at
    Type
    timestamp
    Description

    This property indicates the time in ISO 8601 when the tag was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    This property indicates the time in ISO 8601 when the tag was last updated.

  • Name
    created_by
    Type
    foreignId
    Description

    This property indicates the user who created the tag.

  • Name
    updated_by
    Type
    foreignId
    Description

    This property indicates the user who recently updated the tag.

The Tag Entity

JSON
{
  "id": "123456789",
  "name": "Example Tag",
  "created_at": "2024-01-07T12:30:00Z",
  "updated_at": "2024-01-07T14:45:00Z",
  "created_by": "123456789",
  "updated_by": "123456789"
}

Create a Single Tag

This endpoint allows you to create a single tag.

Required Fields

  • Name
    name
    Type
    string
    Required
    Description

Examples

Create a single tag

POST
/v1/tags
curl --request POST \
  --url https://api.example.com/v1/tags \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Example Tag"
  }'

Retrieve all Tags

This endpoint allows you to retrieve all tags.

Examples

Retrieve all tags

GET
/v1/tags
curl --request GET \
  --url https://api.example.com/v1/tags

Retrieve a Single Tag

This endpoint allows you to retrieve a single tag.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Retrieve a single tag

GET
/v1/tags/123456789
curl --request GET \
  --url https://api.example.com/v1/tags/123456789

Update a Single Tag

This endpoint allows you to update a single tag.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Update a single tag

PATCH
/v1/tags/123456789
curl --request PATCH \
  --url https://api.example.com/v1/tags/123456789 \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "New Tag Name"
  }'

Delete a Single Tag

This endpoint allows you to delete a single tag.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Delete a single tag

DELETE
/v1/tags/123456789
curl --request DELETE \
  --url https://api.qooly.io/v1/tags/123456789

Retrieve all Products in a Tag

This endpoint allows you to retrieve all products in a tag. It returns an array of Product Entity.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description

Examples

Retrieve all products in a tag

GET
/v1/tags/123456789/products
curl --request GET \
  --url https://api.qooly.io/v1/tags/123456789/products

Create a Single Product in a Tag

This endpoint allows you to add products in a tag.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description
  • Name
    product_id
    Type
    string
    Required
    Description

Examples

Create a single product in a tag

POST
/v1/tags/123456789/products
curl --request POST \
  --url https://api.qooly.io/v1/tags/123456789/products \
  --data '{
    "product_id": "123456789"
  }'

Delete a Single Product in a Tag

This endpoint allows you to remove products in a tag.

Required Parameters

  • Name
    id
    Type
    string
    Required
    Description
  • Name
    product_id
    Type
    string
    Required
    Description

Examples

Delete a single product in a tag

DELETE
/v1/tags/123456789/products
curl --request DELETE \
  --url https://api.qooly.io/v1/tags/123456789/products \
  --data '{
    "product_id": "123456789"
  }'