POST /work-requests/{id}/attachments
1 min
POST
https://api.cmp.optimizely.com/v3/work-requests/{id}/attachments
idstringUnique identifier of the work request
acceptstringGenerated from available response content types
bodyobjectPayload to create an attachment
201Created attachment for the work request
400Client error
401Authorization error
403Permission error
404Not found error
curl --request POST \
--url https://api.cmp.optimizely.com/v3/work-requests/{id}/attachments \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"key": "ce8995aea58b11ea8cd90242ac120005",
"name": "sample_image.png"
}'