putRole
Create or update role
Path parameters
Format: <organization_id>:<slug>
Request body
Example request
{
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"conditions": [
{
"attribute": "workflows.primary.task_name",
"values": [
"Qualification"
]
}
],
"dependencies": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"conditions": [
{
"attribute": "workflows.primary.task_name",
"values": [
"Qualification"
]
}
]
}
]
}
],
"id": "123:owner",
"name": "Owner",
"slug": "owner",
"expires_at": "2028-07-21T17:32:28Z",
"organization_id": "123",
"parent_role": "123:owner"
}Response
ok
Example response
{
"id": "123:owner",
"name": "Owner",
"slug": "owner",
"expires_at": "2028-07-21T17:32:28Z",
"organization_id": "123",
"grants": [
{
"action": "entity-read",
"resource": "entity:123:contact:f7c22299-ca72-4bca-8538-0a88eeefc947",
"conditions": [
{
"attribute": "workflows.primary.task_name",
"values": [
"Qualification"
]
}
]
}
],
"parent_role": "123:owner"
}Changes
Changed in 1 of the 2 revisions of this API.1110
- ▲
added
subschema #1subschema #2to the request bodyallOflistrequest-body-all-of-added
- ●
removed
subschema #1subschema #2from the request bodyallOflistrequest-body-all-of-removed
- ○
added the optional property
oneOf[OrgRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/anyOf[EqualsCurrentUserCondition]/attributesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[PartnerRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/anyOf[EqualsCurrentUserCondition]/attributesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[PortalRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/anyOf[EqualsCurrentUserCondition]/attributesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[ShareRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/anyOf[EqualsCurrentUserCondition]/attributesto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[UserRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/anyOf[EqualsCurrentUserCondition]/attributesto the response with the200statusresponse-optional-property-added
- ○
added
NotEqualsConditionNotEqualsCurrentUserConditionto theoneOf[OrgRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/response propertyanyOflist for the response status200response-property-any-of-added
- ○
added
NotEqualsConditionNotEqualsCurrentUserConditionto theoneOf[PartnerRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/response propertyanyOflist for the response status200response-property-any-of-added
- ○
added
NotEqualsConditionNotEqualsCurrentUserConditionto theoneOf[PortalRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/response propertyanyOflist for the response status200response-property-any-of-added
- ○
added
NotEqualsConditionNotEqualsCurrentUserConditionto theoneOf[ShareRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/response propertyanyOflist for the response status200response-property-any-of-added
- ○
added
NotEqualsConditionNotEqualsCurrentUserConditionto theoneOf[UserRole]/allOf[BaseRole]/grants/items/conditions/items/allOf[subschema #2]/response propertyanyOflist for the response status200response-property-any-of-added
- ▲