Update Tenant Custom Permission (v2.0)
PUT/sdwan/v2.0/api/permissions/:permission_id
Update a tenant custom permission.
Request
Path Parameters
permission_id stringrequired
The permission ID.
- application/json
Body
Permission details
allowed_after_ms int64
Allowed After Ms
allowed_before_ms int64
Allowed Before Ms
disabled boolean
List the disabled custom permissions.
disabled_reason string
The reason for disabling the custom permission.
disallow_permission boolean
Disallow Permission
id string
The ID.
inactive boolean
List the inactive custom permissions.
inactive_reason string
The reason for the custom permission being inactive.
region string
The region.
value stringrequired
The custom permission value.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
allowed_after_ms int64
Allowed After Ms
allowed_before_ms int64
Allowed Before Ms
disabled boolean
List the disabled custom permissions.
disabled_reason string
The reason for disabling the custom permission.
disallow_permission boolean
Disallow Permission
id string
The ID.
inactive boolean
List the inactive custom permissions.
inactive_reason string
The reason for the custom permission being inactive.
region string
The region.
value stringrequired
The custom permission value.
{
"allowed_after_ms": 0,
"allowed_before_ms": 0,
"disabled": true,
"disabled_reason": "string",
"disallow_permission": true,
"id": "string",
"inactive": true,
"inactive_reason": "string",
"region": "string",
"value": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
code string
The error code.
message string
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "ESP_INVALID_TENANT_ID"
},
{
"code": "PERMISSION_API_TEST_FAILED"
},
{
"code": "PERMISSION_NOT_CUSTOMIZED"
},
{
"code": "PERMISSION_AFTER_LARGER_THAN_BEFORE"
},
{
"code": "PERMISSION_TENANT_ID_MISMATCH"
},
{
"code": "PERMISSION_API_TEST_TENANTID_FAILED"
}
]
}
}
Loading...