Sample - Box Platform API
POST/collaboration_whitelist_exempt_targets

Create user exemption from collaboration domain restrictions

Exempts a user from the restrictions set out by the allowed list of domains for collaborations.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 body field
userobjectrequired
The user to exempt.

2 status codes
200Returns a new exemption entry.
idstringoptional
The unique identifier for this exemption.
typestringoptional
The value will always be `collaboration_whitelist_exempt_target`.
Allowed:collaboration_whitelist_exempt_target
enterpriseobjectoptional
userobjectoptional
created_atstringoptional
The time the entry was created.
modified_atstringoptional
The time the entry was modified.
defaultAn unexpected client error.
typestringoptional
The value will always be `error`.
Allowed:error
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
Allowed:createdacceptedno_contentredirectnot_modifiedbad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictprecondition_failed
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.