AddOns
Create an AddOn
Create an AddOn
POST
/
addons
curl --request POST \
--url https://api.togai.com/addons \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "LICENSE",
"billableName": "<string>"
}'
{
"name": "<string>",
"type": "LICENSE",
"billableName": "<string>",
"id": "addon.1zYnCiM9Bpg.1zYn",
"createdAt": "2023-11-07T05:31:56Z",
"status": "ACTIVE"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
name
string
requiredName of addon
type
enum<string>
requiredLICENSE: Addon can be used in license rate cards FIXED_FEE: Addon can be used in fixed fee rate cards CREDIT_GRANT: Addon can be used in credit grant rate cards
Available options:
LICENSE
, FIXED_FEE
, CREDIT_GRANT
billableName
string
Billable name of addon. Billable name takes precedence over name to display in invoice.
Response
200 - application/json
name
string
requiredName of addon
type
enum<string>
requiredLICENSE: Addon can be used in license rate cards FIXED_FEE: Addon can be used in fixed fee rate cards CREDIT_GRANT: Addon can be used in credit grant rate cards
Available options:
LICENSE
, FIXED_FEE
, CREDIT_GRANT
billableName
string
Billable name of addon. Billable name takes precedence over name to display in invoice.
id
string
requiredId of addon
createdAt
string
requiredCreated Time of addon
status
enum<string>
requiredstatus of addon
Available options:
ACTIVE
, ARCHIVED
curl --request POST \
--url https://api.togai.com/addons \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"type": "LICENSE",
"billableName": "<string>"
}'
{
"name": "<string>",
"type": "LICENSE",
"billableName": "<string>",
"id": "addon.1zYnCiM9Bpg.1zYn",
"createdAt": "2023-11-07T05:31:56Z",
"status": "ACTIVE"
}