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 a person

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

Uploads a file and links it to the person.

Add File to a Person

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

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

The person 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 person to attach the file to.

externalIdentifier

string

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

The external API identifier of the person 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 confirms the file was created and attached to the person.

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 person

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