Create Document

Create Document

Creates a new document from the provided data, associating it within the requester's scope.

Module: Documents

Returns: Documents → Documents → DocumentRead (single)

Authorization

Required Token Scopes: Platform (0)

Allowed Party Types (Account Role): Admin (1), Property Management Company (2)

Required Account Permission: UploadDocument (32)

This will be evaluated against your used access token.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

A stored file together with its metadata and the master data it is assigned to.
The document belongs to the party creating it.
At least one of propertyId, unitId, contractId or partyId must be provided.
An assignment grants no access by itself: other parties only see the document through a document share, which automatic sharing creates from the assignment in a document group configured for it.
More info: Documents

string
required
length between 1 and 255

Display name of the document.
Required, at most 255 characters.

string | null

Optional description providing additional information about the document.

int32 | null

Identifier of the document group the document is filed in.
Must be a group of the creating party.
Leave null to place the document at root-level.
Decides whether automatic sharing applies: only in a group configured for at least one contract type, where it also deletes every share it wouldn't create itself, including shares created by hand.

date-time | null

Business-related date of the document (e.g. issue date or effective date).
More info: Dates and Times

int32 | null

Identifier of the property or entrance this document is assigned to.
Decides who automatic sharing shares the document with, unless a more specific unitId, contractId or partyId is set.

int32 | null

Identifier of the unit this document is assigned to.
When propertyId is set too, the unit must belong to that property or entrance.
Decides who automatic sharing shares the document with, unless a more specific contractId or partyId is set.

int32 | null

Identifier of the contract this document is assigned to.
When unitId is set too, the contract must belong to that unit.
When propertyId is set too, unitId is required.
Decides who automatic sharing shares the document with, unless a more specific partyId is set.

int32 | null

Identifier of the party this document is assigned to.
Automatic sharing shares the document with exactly this party, but only in a document group configured for it.
Otherwise the party only gets access through a document share you create.

int32
required

Identifier of the file entity containing the document content.

string | null

External ID of the document, which isn't unique yet.
More info: External IDs

boolean | null

Creates the document in the archived ("nicht übernommen") state, where it stays invisible to the parties it is shared with until the creating party releases it.
Automatic sharing skips archived documents, so their shares are neither added nor removed.
Intended for ERP imports running in manual review mode, see DocumentImportMode on the party and Documents.Import(...) in the facilioo SDK, which resolves the mode and sets this flag for you.
Leave null (the default) to keep the current status untouched.

Headers
string
Defaults to 2.0

API version to use (1 or 2) either with trailing .0 or without. Defaults to 2.0, if omitted.
More info: Versioning

string

Name of your integration, e.g. acme-erp-sync. Recommended for every request.
More info: Client Identification

Responses

401

Error: Unauthorized

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json