v50
latestOpenAPI 3.1.0Creative Force Client Subscription Termsraw.githubusercontent.com2026-07-137852387.4 KBAttachments
Create an attachment
Creates an attachment on the specified entry under the specified tab.
post/entry/{entry_slug}/attachment/{tab_slug}
Headers
Accept'application/vnd.Creative Force.v2.3+json' | 'application/vnd.Creative Force.v2.3+xml' required
Defines the response type.
x-api-languagestring[]
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
Example request
{
"filename": "hello.xls",
"data": "aGVsbG8gd29ybGQ=",
"order": 1,
"attachment_fields": {
"text-slug": "Some short text",
"numeric-slug": 42,
"checkbox-slug": true,
"radio-slug": "option-key-1",
"checkboxlist-slug": [
"option-key-1",
"option-key-2"
],
"country-slug": "AU",
"date-slug": "2026-06-16"
}
}Response
Attachment created.
Example response
{
"token": "AbCdEfGhIjKlMnOp",
"link": "https://api.au.cr4ce.com/attachment/AbCdEfGhIjKlMnOp",
"file": {
"filename": "example.pdf",
"token": "QrStUvWxYzAbCdEf",
"link": "https://api.au.cr4ce.com/file/QrStUvWxYzAbCdEf"
}
}