Menu
Create A Custom API Role Policy
Create A Custom API Role Policy
POST
/v2/permissions/custom-api-role-policiesUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create A Custom API Role Policy action (under Permissions).
- Fill in the fields below, then reference the result from later steps as
{{createACustomApiRolePolicy.response.data}}.
Fields
Response
Returns 201 with an object. Read it in later steps with {{createACustomApiRolePolicy.response.data.<field>}}.
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "string",
"create": false,
"list": false,
"read": false,
"update": false,
"delete": false,
"links": {
"self": "string"
},
"meta": {
"timestamps": {
"created_at": "2017-01-10T11:41:19.244Z",
"updated_at": "2017-01-10T11:41:19.244Z"
}
},
"relationships": {
"custom_api": {
"data": {
"id": "652e39d8-d613-493e-8c20-fef99ad6327a",
"type": "string"
}
},
"role": {
"data": {
"id": "it-developer",
"type": "standard_user_role"
}
}
}
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?