Stream exactly one declared static file#

PropertyValue
Servicecrossfire
OperationuploadPublicationFile
MethodPUT
Path/api/publications/{publicationId}/files/{fileId}
Authenticationagent
Success status200
Response dataUnpaginated value
Request formatbinary
Maximum request body8388608 bytes (operation-specific)
Permission codespublication.publish.self

Listed permission codes are alternatives, not token scopes. The service also checks access to the requested records and rejects stale revisions or controller generations.

Send raw declared file bytes. The length, SHA-256 and media type must match the staged manifest. Commit the publication after uploading its files.

Path parameters#

Your HTTP client substitutes these values into the placeholders in the URL path.

object; fields below; unknown fields rejected

Field pathRepresentation and constraints
publicationIdlowercase opaque UUID
fileIdlowercase opaque UUID

Validation#

This TypeScript is the server’s validation code, reproduced from its contract. It describes the accepted format; client applications do not need to run or import it.

check.object({ publicationId: check.identifier, fileId: check.identifier })

Referenced definitions:

Query parameters#

Your HTTP client supplies these values in the URL query string.

custom validation: none ; see function below

Query parameters are URL text. The validation function below specifies their format, defaults and combinations. Pagination applies only to operations that use it.

Additional checks#

The following checks apply in addition to the field limits.

Constraint on value:

export function none(input: unknown) {
    const parsed = listQuery([])(input);
    return parsed.ok ? success({}) : parsed;
}

Validation#

This TypeScript is the server’s validation code, reproduced from its contract. It describes the accepted format; client applications do not need to run or import it.

query.none

Referenced definitions:

Request body#

Use Content-Type: application/octet-stream and a canonical decimal Content-Length matching the staged file. The body must remain within the operation limit and match the declared SHA-256. Do not wrap it in JSON or base64.

BinaryInput below describes the server’s representation of the upload stream. chunks is not an HTTP request field.

Server-side stream validation#

binaryInput

Response data#

The service produces these fields inside data in its response. They are output for the client to read, not input for the caller to submit.

object; fields below; unknown fields rejected

Field pathRepresentation and constraints
uploadedboolean

Validation#

This TypeScript is the server’s validation code, reproduced from its contract. It describes the accepted format; client applications do not need to run or import it.

check.object({ uploaded: check.boolean })

Referenced definitions:

Response envelope#

This JSON illustrates a response returned by the service, not a request to send. The service fills data with the operation result and meta with request metadata. The string below marks where the actual response data appears; it is not an example record. Errors contain error instead of data.

{
  "data": "<value matching the response-data validator>",
  "meta": {
    "requestId": "00000000-0000-0000-0000-000000000001"
  }
}