Update Account Permissions
PUT/v2/account/:account_id/permissions
Update account permissions.Requires accountOrg:config:edit or account:config:edit permissions and for user to share an org with an account
Request
Path Parameters
Account ID
- application/json
Body
required
Array [
]
Array [
]
Organization to which this permission is assigned. Only necessary if the api consumer shares more than one organization with the account.
account_permissions
object[]
required
group_permissions
object[]
required
ID of the permission group
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
account_permissions
object[]
required
Org ID to which the permission applies
Product ID to which the permission applies
Environment ID to which the permission applies
Sandbox ID to which the permission applies
Name of the org to which the permission applies
Name of the product to which the permission applies
Name of the environment to which the permission applies
Name of the sandbox to which the permission applies
Permission to be applied to the entity
ID of the account permission
group_permissions
object[]
required
ID of the permission group
Org ID to which the permission applies
Product ID to which the permission applies
Environment ID to which the permission applies
Sandbox ID to which the permission applies
Name of the org to which the permission applies
Name of the product to which the permission applies
Name of the environment to which the permission applies
Name of the sandbox to which the permission applies
Permission to be applied to the entity
Name of the permission group
{
"account_permissions": [
{
"org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"org_name": "string",
"product_name": "string",
"environment_name": "string",
"sandbox_name": "string",
"permission_id": "string",
"account_permission_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"group_permissions": [
{
"group_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"product_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"environment_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"sandbox_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"org_name": "string",
"product_name": "string",
"environment_name": "string",
"sandbox_name": "string",
"permission_id": "string",
"group_name": "string"
}
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}