createOrgApiToken
POST https://{{host}}/api/v1/orgs/:org_id/apitokens
Body Parameters
Name | Type | Description |
---|---|---|
name | string | name of the token |
privileges | list | list of privileges the token has on the orgs/sites |
scope | string | site / org / sitegroup |
role | string | admin / write / read |
src_ips | list | optional, list of allowed IP addresses from where the token can be used from. At most 10 IP addresses can be specified |
Request Body
{"name"=>"org_token_xyz", "privileges"=>[{"scope"=>"org", "role"=>"read"}, {"scope"=>"site", "site_id"=>"d96e3952-53e8-4266-959a-45acd55f5114", "role"=>"admin"}, {"scope"=>"sitegroup", "sitegroup_id"=>"581328b6-e382-f54e-c9dc-999983183a34", "role"=>"write"}], "src_ips"=>["63.3.56.0/24", "63.3.55.4"]}