POST
/file_requests/{file_request_id}/copyCopy file request
Copies an existing file request that is already present on one folder, and applies it to another folder.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
file_request_idstringrequired
The unique identifier that represent a file request.
The ID for any file request can be determined
by visiting a file request builder in the web application
and copying the ID from the URL. For example,
for the URL `https://*.app.box.com/filerequest/123`
the `file_request_id` is `123`.
titlestringoptional
An optional new title for the file request. This can be
used to change the title of the file request.
This will default to the value on the existing file request.
descriptionstringoptional
An optional new description for the file request. This can be
used to change the description of the file request.
This will default to the value on the existing file request.
statusstringoptional
An optional new status of the file request.
When the status is set to `inactive`, the file request
will no longer accept new submissions, and any visitor
to the file request URL will receive a `HTTP 404` status
code.
This will default to the value on the existing file request.
is_email_requiredbooleanoptional
Whether a file request submitter is required to provide
their email address.
When this setting is set to true, the Box UI will show
an email field on the file request form.
This will default to the value on the existing file request.
is_description_requiredbooleanoptional
Whether a file request submitter is required to provide
a description of the files they are submitting.
When this setting is set to true, the Box UI will show
a description field on the file request form.
This will default to the value on the existing file request.
expires_atstringoptional
The date after which a file request will no longer accept new
submissions.
After this date, the `status` will automatically be set to
`inactive`.
This will default to the value on the existing file request.
folderobjectrequired
The folder to associate the new file request to.
200Returns updated file request object.
idstringrequired
The unique identifier for this file request.
typestringrequired
The value will always be `file_request`.
titlestringoptional
The title of file request. This is shown
in the Box UI to users uploading files.
This defaults to title of the file request that was
copied to create this file request.
descriptionstringoptional
The optional description of this file request. This is
shown in the Box UI to users uploading files.
This defaults to description of the file request that was
copied to create this file request.
statusstringoptional
The status of the file request. This defaults
to `active`.
When the status is set to `inactive`, the file request
will no longer accept new submissions, and any visitor
to the file request URL will receive a `HTTP 404` status
code.
This defaults to status of file request that was
copied to create this file request.
is_email_requiredbooleanoptional
Whether a file request submitter is required to provide
their email address.
When this setting is set to true, the Box UI will show
an email field on the file request form.
This defaults to setting of file request that was
copied to create this file request.
is_description_requiredbooleanoptional
Whether a file request submitter is required to provide
a description of the files they are submitting.
When this setting is set to true, the Box UI will show
a description field on the file request form.
This defaults to setting of file request that was
copied to create this file request.
expires_atstringoptional
The date after which a file request will no longer accept new
submissions.
After this date, the `status` will automatically be set to
`inactive`.
folderobjectrequired
urlstringoptional
The generated URL for this file request. This URL can be shared
with users to let them upload files to the associated folder.
etagstringoptional
The HTTP `etag` of this file. This can be used in combination with
the `If-Match` header when updating a file request. By providing that
header, a change will only be performed on the file request if the `etag`
on the file request still matches the `etag` provided in the `If-Match`
header.
created_byobjectoptional
created_atstringrequired
The date and time when the file request was created.
updated_byobjectoptional
updated_atstringrequired
The date and time when the file request was last updated.
401Returned when the access token provided in the `Authorization` header
is not recognized or not provided.
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.
403Returned if the user does not have all the permissions to complete the
update.
* `access_denied_insufficient_permissions` when the authenticated user
does not have access to update the file request.
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.
404Returned if the file request is not found, or the user does not
have access to the associated folder.
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.
405Returned if the `file_request_id` is not in a recognized format.
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.
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
A 401 is returned: Returned when the access token provided in the Authorization header
is not recognized or not provided. A 403 is returned: Returned if the user does not have all the permissions to complete the
update.
access_denied_insufficient_permissionswhen the authenticated user does not have access to update the file request. A 404 is returned: Returned if the file request is not found, or the user does not have access to the associated folder. A 405 is returned: Returned if thefile_request_idis not in a recognized format. Any other status is an error: An unexpected client error.