Documentation Index

Fetch the complete documentation index at: https://www.bloxs.io/llms.txt

Use this file to discover all available pages before exploring further.

Add file to an organisation

Prev Next
Post
/api/v1/relations/organisations/files

Uploads a file and links it to the organisation.

Add File to an Organisation

Uploads a file and attaches it to an existing organisation relation.

A developer calls this endpoint to store a document against an organisation's record, for example a signed contract, a Chamber of Commerce extract, or other supporting paperwork, so it can be retrieved later from within Bloxs.

The organisation to attach the file to is located via reference or externalIdentifier, at least one of which must be supplied.


Request Fields

Field

Type

Required

Description

reference

string

Required (at least one of reference or externalIdentifier must be given)

The internal identifier (Reference/Code) of the organisation to attach the file to.

externalIdentifier

string

Required (at least one of reference or externalIdentifier must be given)

The external API identifier of the organisation to attach the file to.

File

string (binary)

Required

The file to upload, sent as multipart/form-data (or as a base64-style binary field if submitted as application/json). If no file is included in the request, the call fails.


Response Fields

This endpoint returns no response body on success. A 200 response with content-length: 0 confirms the file was created and attached to the organisation, consistent with the behavior confirmed for the equivalent Person endpoint.

Field

Type

Required

Description

(none)

No fields are returned on success.

Security
Query parameters
reference
string

The internal identifier of the model (i.e. Reference, Code, Name, depends on model).

externalIdentifier
string

The external API identifier of the model.

Body parameters
object
File
string (binary)
object
File
string (binary)
Responses
200

The file was created

400

No file was uploaded

404

There was a problem attaching the file to the organisation

Expand All
object
type
string | null
title
string | null
traceId
string | null
status
integer (int32)
errors
object | null
property*
Array of string | null additionalProperties
string