Standard and Zones Storage Policy Assignments
Assign storage policy
Changed onCreates a storage policy assignment for an enterprise or user.
post/storage_policy_assignments
Request
- Base URLhttps://api.box.com/2.0
- URLhttps://api.box.com/2.0/storage_policy_assignments
- AuthOAuth 2Authorization code: https://account.box.com/api/oauth2/authorizeToken URL: https://api.box.com/oauth2/token
Request body
Example request
{
"storage_policy": {
"type": "storage_policy",
"id": "1434325"
},
"assigned_to": {
"type": "user",
"id": "9987987"
}
}Response
Returns the new storage policy assignment created.
Example response
{
"id": "ZW50ZXJwcmlzZV8xMjM0NTY3ODkw",
"type": "storage_policy_assignment",
"storage_policy": {
"id": "11446498",
"type": "storage_policy"
},
"assigned_to": {
"id": "11446498",
"type": "file"
}
}Changes
- warning
added the new
unprocessable_entityenum value to theresponse property for the response status
- warning