Api Path : https://{{api.box.com}}/2.0/sign_requests
Request Body:
{
"is_document_preparation_needed": true,
"parent_folder": {
"id": "242033790140",
"type": "folder"
},
"name": "new file",
"days_valid": 2,
"source_files": [
{
"id": "1402075677437",
"type": "file"
}
],
"signature_color": "blue",
"signers": [
{
"email": "abc@gmail.com",
"role": "final_copy_reader"
}
]
}
Response :
{
"type": "error",
"code": "bad_request",
"status": 400,
"message": "Bad request",
"help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
"request_id": "0161f8a960ede1346f50bfdc34b75156f",
"context_info": {
"errors": [
{
"name": "source_files",
"message": "Enter a valid file.",
"reason": "invalid_parameter"
}
]
}
}