Paragraph files

Add Files To Paragraph

curl -i -X POST "https://example.ziik.io/api/paragraphs/files"
  -H "Authorization: Bearer aaaaaaaaa.bbbbbbbbb.cccccccccc"
  -d "{ [...] }"

The above command returns 204 No Content on success

HTTP/1.0 204 No Content

This endpoint adds files to an existing paragraph.

HTTP Request

POST https://example.ziik.io/api/paragraphs/files

Request Parameters

ParameterTypeRequiredDescription
idIntegerYesThe ID of the paragraph to add files to
filesArrayNoMust be an array of either standard multipart/form-data or an array of data with the following values
- typeStringYesType of file - can be either 'upload', 'youtube' or 'vimeo'.
- nameStringYesFile name.
- dataStringYesIf type is 'upload' this must be the base64 encoded content of the file. Else it must be the Youtube/Vimeo embed URL.

Permissions Required

  • Manual edit access

Delete File From Paragraph

curl -i -X DELETE "https://example.ziik.io/api/paragraphs/124/files/12345"
  -H "Authorization: Bearer aaaaaa.bbbbbbb.ccccccc"

The above command returns a 204 No Content header on success:

HTTP/1.0 204 No Content

This endpoint deletes a file from a paragraph.

HTTP Request

DELETE https://example.ziik.io/api/paragraphs/PARAGRAPHID/files/FILEID

URL Parameters

ParameterTypeDescription
PARAGRAPHIDIntegerThe ID of the paragraph
FILEIDIntegerThe ID of the file to delete

Permissions Required

  • Manual edit access