/role-store/api/v1/rolesAsk AIpost https://example.com/role-store/api/v1/rolesCreate a new role definition. ID, author, created & updated fields are automatically populated by the server.Body ParamsnamestringrequiredName of the rolecommentstringA comment describing the objectpermit_agentbooleanPermit agenttruefalseaccess_group_iduuidScopes host and connection permissions to an access grouppermissionsarray of stringsArray of permissionspermissionsADD stringcontextobjectContextual limitationcontext objecttypestringrole typearnstringrole ARNsource_rulesobjectrequiredA source rule(s) definition. Can be a single rule or a rule group, in which case either "single" or "group" attributes are requriredsource_rules objecttagsarray of stringsArray of tag stringstagsADD stringsourcestringSource of rulemember_countintegerRole member countHeadersAuthorizationstringrequiredDefaults to Bearer a-proper-token-goes-hereOAuth2 tokenResponses 201Role Successfully created 400Bad request 401Unauthorized request, OAuth2 authorization missing or invalid 403Unauthorized request, OAuth2 authorization OK but scope insufficient 404Resource not found 500Internal server errorUpdated over 4 years ago