createOrgApiToken

POST https://{{host}}/api/v1/orgs/:org_id/apitokens

Body Parameters

NameTypeDescription
namestringname of the token
privilegeslistlist of privileges the token has on the orgs/sites
scopestringsite / org / sitegroup
rolestringadmin / write / read
src_ipslistoptional, 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"]}