Upload an attachment to a purchase request
POST/purchase-requests/:code/attachments
Uploads a file attachment for a purchase request. The file must be a PDF; its content is validated, not just its name. Attachments are append-only: once uploaded they cannot be edited or deleted. The file will be stored in object storage.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 429
- 500
Attachment uploaded successfully
Bad request - validation error, or the file is not a PDF
Unauthorized
Forbidden - request denied by authorization, or blocked by the API firewall
Purchase request not found
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Retry-After
Delay in seconds a client must wait before retrying the request
Internal server error