To add an attachment to an application you need the application ID and the attachment itself to upload. You have to submit a request with the body being in multipart/form-data format. The file is represented by the field named ‘file‘ (see example below).

See these pages to learn how to remove the attachment again.

HTTP-Method

POST

Path

/api/rest/v3/frontend/attachments/

Authentification

User Access Token

Path Parameter

-none-

Query Parameter

applicationId

Responses

Action Response Description
success see example call File information about the uploaded attachment. Does not contain the file itself.
authorization error 401 / 403 See here and here for details.
error 404 – { “code”: “get_application_error” } No application was found for the provided ID.
error 400 – { “code”: “get_application_error”, “message”: “Cannot retrieve applications of others” } The application does not belong to the user issued in the token
error 400 – { “code”: “application_deleted_error”, “message”: “Cannot retrieve deleted application” } The application has been deleted
error 400 – { “code”: “application_access_error”, “message”: “Application is not editable anymore” } The application is not editable anymore.

Example call with curl and user access token

Antwort:

Comments

Comments are closed.