POST
/storage_policy_assignmentsAssign storage policy
Creates a storage policy assignment for an enterprise or user.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
storage_policyobjectrequired
The storage policy to assign to the user or
enterprise.
assigned_toobjectrequired
The user or enterprise to assign the storage
policy to.
200Returns the new storage policy assignment created.
idstringrequired
The unique identifier for a storage policy assignment.
typestringrequired
The value will always be `storage_policy_assignment`.
storage_policyobjectoptional
assigned_toobjectoptional
defaultAn unexpected client error.
typestringoptional
The value will always be `error`.
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context
about the error. The possible fields are defined on
a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used
when contacting Box support.
Error handling
Any other status is an error: An unexpected client error.