Vendors
Create Vendor
This endpoint creates a new vendor
POST
/v1/vendors
Bearer*
Body
current_token
string
This is the current user group token you have for the user group that you want to rotate.
Response
success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
user_group
object
The contents of the user group
curl --location --request POST 'https://api.stateset.com/v1/vendor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"current_token": ""
}'
{
"success": 1,
"user_group": {
"team_id": 3,
"token": "<user_group_token_to_auth_dashboard>",
"name": "Example 1",
"provided_id": "example_1"
}
}
curl --location --request POST 'https://api.stateset.com/v1/vendor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"current_token": ""
}'
{
"success": 1,
"user_group": {
"team_id": 3,
"token": "<user_group_token_to_auth_dashboard>",
"name": "Example 1",
"provided_id": "example_1"
}
}