Uploads a file's contents, associating it with the attachment metadata instance with the given ID. The request body is simply the file's bytes. If a file was already uploaded for the attachment with the given ID, that file will be overwritten.
To use this endpoint, the user is required to have the ProjectWise Forms Comment (
Forms_CommentAccess) permission for the project, or for the issue's associated form definition if form definition security is specified. (Having Create/Modify, Assign, Approve, or Full permission automatically grants the Comment permission as well.)
Authorization header with valid Bearer token for scope
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Indicates that the attachment file was successfully uploaded
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
This response indicates that the specified attachment metadata instance does not exist or is inaccessible to the user.
Indicates that the file the user attempted to upload is above the maximum size.
This response indicates that the user has sent too many requests in a given amount of time.