Subcategories

This module can be used to create and list subcategories (token templates)

Token Templates are the barebones of any token collection, when you create a collection you select a category for it and then a template, this contains a set of pre-defined parameters that any one of your tokens will need in its metadata.

List all subcategories

When listing subcategories you have three scope options:

  • generic: brings subcategories that are generic and are not for a specific company

  • specific: lists only subcategories created by the company

  • all: lists all of the above

get

List subcategories of a company

Authorizations
x-w3block-api-keystringRequired

W3block API key

Path parameters
companyIdstringRequired
Query parameters
categoryIdstringOptional
scopestringOptionalExample: all
Responses
200Success
application/json
get
/{companyId}/subcategories

Create a subcategory

post

Create a new subcategory

Authorizations
x-w3block-api-keystringRequired

W3block API key

Path parameters
companyIdstringRequired
Body
categoryIdstringRequired
namestringRequired
tokenTemplateobjectRequired
certificateTemplatestringOptional
Responses
post
/{companyId}/subcategories

Get subcategory details

get

Get a subcategory by id

Authorizations
x-w3block-api-keystringRequired

W3block API key

Path parameters
idstringRequired
companyIdstringRequired
Responses
200Success
application/json
get
/{companyId}/subcategories/{id}

Update subcategory

patch

Update a subcategory by id

Authorizations
x-w3block-api-keystringRequired

W3block API key

Path parameters
idstringRequired
companyIdstringRequired
Body
categoryIdstringOptional
namestringOptional
tokenTemplateobjectOptional
certificateTemplatestringOptional
Responses
200Success
application/json
patch
/{companyId}/subcategories/{id}

Last updated