Update an attachment
Changed onUpdates the attachment identified by the specified token.
Request
- Base URLhttps://api.us.cr4ce.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Defines the response type.
Defines the languages included in the response. If non are provided, the account default language is returned.
Value all overrides any other values present.
You can request multiple languages using a comma-separated string of languages.
The selected language must be supported by your account or a 400 error is returned.
Request body
Response
Attachment updated.
Example response
{
"entry": {
"slug": "AbCdEfGh",
"link": "https://api.au.cr4ce.com/entry/AbCdEfGh",
"title": "Project title"
},
"attachment_fields": [
{
"slug": "IjKlMnOp",
"link": "https://api.au.cr4ce.com/field/IjKlMnOp",
"label": {
"en_GB": "Type of attachment"
},
"title": {
"en_GB": "Type of attachment"
},
"value": "Photo",
"translated": {
"en_GB": "Photo"
}
},
{
"slug": "QrStUvWx",
"link": "https://api.au.cr4ce.com/field/QrStUvWx",
"label": {
"en_GB": "<p>URL</p>"
},
"title": {
"en_GB": "URL"
},
"value": "https://example.com/image.svg",
"translated": {
"en_GB": "https://example.com/image.svg"
}
}
],
"created": "2025-04-27T01:00:00Z",
"file": {
"token": "AbCdEfGhIjKlMnOp",
"link": "https://api.au.cr4ce.com/file/AbCdEfGhIjKlMnOp",
"download": "https://files.au.cr4ce.com/file/AbCdEfGhIjKlMnOp/example.pdf?Expires=1781485359&Signature=REDACTED&Key-Pair-Id=REDACTED",
"filename": "example.pdf"
},
"order": 1,
"tab": {
"slug": "YzAbCdEf",
"link": "https://api.au.cr4ce.com/tab/YzAbCdEf",
"name": {
"en_GB": "Attachments"
}
},
"token": "AbCdEfGhIjKlMnOp",
"updated": "2025-04-27T01:05:00Z"
}Changes
- info
api tag
Attachmentsadded - info
api tag
Attachmentremoved
- info
- info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status - info
added the media type
application/xmlfor the response with the status
- info