Bids
DELETE
bids/attachments/{attachmentId}
Deletes the specified bid attachment under the following conditions:
- The attachment must have been created by the current API user. If not, a
404
response is returned. - The attachment must not be included in any bid. If it is, a
403
response is returned.
Note that the attachment’s ID is generated when you call POST bids/attachments to create the attachment. Note the value of id
in the response.
Resource Information
Method and URI | DELETE https://developer.api.autodesk.com/construction/buildingconnected/v2/bids/attachments/{attachmentId} |
Authentication Context | user context required |
Required OAuth Scopes | data:write |
Data Format | JSON |
Request
Headers
Authorization* string | Must be Bearer <token> , where <token> is obtained via a three-legged OAuth flow. |
* Required
Request
HTTP Status Code Summary
204 No Content | No Content |
400 Bad Request | The parameters of the requested operation are invalid. |
401 Unauthorized | The provided bearer token is not valid. |
403 Forbidden | The user or service represented by the bearer token does not have permission to perform this operation. |
404 Not Found | The requested resource could not be found. |
429 Too Many Requests | Rate limit exceeded; wait some time before retrying. The ‘Retry-After’ header might provide the amount of the time to wait. |
500 Internal Server Error | An unknown error occurred on the server. |
Response
Body Structure (204)
Response for 204 has no body.
Example
No Content
Request
curl -v 'https://developer.api.autodesk.com/construction/buildingconnected/v2/bids/attachments/:attachmentId' \
-X 'DELETE' \
-H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
Response
204 No Content