post https://example.com/privacy/private/v1/documents
Create a new version of a document with doc type and language.
Permissions:
Role | Access |
---|---|
root | can create documents |
admin | can't create documents |
customer | can't create documents |
List of possible error codes:
-
[400] REQUIRED
- Validation error that indicates which fields are required. Provide the required field(s).
-
[400] UNSUPPORTED_DOC_TYPE
- Indicates that the doc type is not valid. Provide the correct field value.
-
[400] REQUIRED_IF_LANGUAGE_IS_DEFAULT
- Effective date should be provided if language is the default Provide the correct field value.
-
[400] DAY_AFTER_NOW
- Effective date should be at least tomorrow Provide the correct field value.
-
[400] LANG_ONE_OF
- Language should be lowercase alpha-2 ISO 639-1 value Provide the correct field value.
-
[400] EFFECTIVE_DATE_SHOULD_BE_AFTER_LATEST_EFFECTIVE
- Effective date should be at least 1 day after the latest effective_since
-
[409] LOCALIZATION_ALREADY_EXISTS
- Language localisation already exists.
-
[409] UNMARSHAL_JSON
- Validation error that indicates that one or more fields in the request body has an invalid value. Provide the correct field value.
-
[422] DEFAULT_LANGUAGE_LOCALIZATION_REQUIRED
- Default language localization is required to be created first.