Create an internal resource
Create a new internal resource. Send the file either as a base64 data URI in file or as the URL that POST /api/core/private/v1alpha/files/ returned for private=true in fileUrl. Only a privately staged upload is accepted in fileUrl; a public upload URL is refused. The staged file must be an image (JPEG, PNG, SVG, WebP, GIF) or a PDF of at most 4 MB; it is copied into the resource’s protected storage and the staged copy is removed. file wins when both are sent: a well-formed fileUrl is then ignored without being checked (a malformed one is still refused). A resource needs either url or a file: send url: null with fileUrl to replace a link with a file.
Authentication
AuthorizationToken
Your API key, sent as Authorization: Token <your API key>
Path parameters
directoryId
id of the directory
entryId
id of the Partner entry
Request
This endpoint expects an object.
fileUrl
title
file
url
order
Response
Successful operation
id
title
file
fileUrl
url
order
Errors
400
Bad Request Error
404
Not Found Error