Overview

Overview

Documaster Noark5 API is an HTTP/JSON based API, secured with OAuth2/OIC. As such all requests and responses, apart from those for uploading and downloading files are in JSON format (having Content-Type: application/json).

Documaster Noark 5 API exposes operations for managing all the archive core entities, together with operations for managing business specific metadata (BSM), code lists, etc. Core entities are managed through the Core Operations, while any other entities are managed using Other Operations.

Security

All operations are secured using OAuth2/OIC, which means an access token should be provided in the Authorizaton HTTP header prefixed with Bearer. For more details please refere to Authentication and Authorization section.

HTTP Status Codes

All operations return an HTTP status code in the 2XX range when successfully executed. Below are the supported successful status codes.

Status Code Description
200 OK The request was successful.
201 Created The request was fulfilled and resulted in a new resource being created.
202 Accepted The request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place.
204 No Content The request was successful, but there is no content to send in the response payload body.

Number of HTTP status codes are supported to indicate an error either on the server side or the client side. HTTP status codes for errors are separated in groups depending on when they can occur.

Integration Error HTTP Status Codes

Integration error codes are HTTP status codes that are most likely to be seen during the integration phace with the API. Those are codes indicating that the request being made is invalid and should be corrected. Observing those error codes in production integration can be considered an indicator of incorrect usage of the API.

Status Code Description
400 Bad Request The syntax of the request was invalid.
415 Unsupported Media Type The payload format requested by the client is not supported by the server.

Operational Error HTTP Status Codes

Status Code Description
401 Unauthorized The request was denied due to an invalid or missing access token.
403 Forbidden The request was denied due to the access token having insufficient privileges.
404 Not Found The requested resource does not exist or is not accessible.
409 Conflict Data was updated by another client after the last read by this client. The client may retry the request.
500 Internal Server Error An internal server error has occurred.
503 Service Unavailable The service is temporarily unavailable.

Errors

All operations return errors in JSON format. Mandatory request header X-Documaster-Error-Response-Type set to application/json explicitly instructs the API to return only JSON formed responses.

The header X-Documaster-Error-Response-Type is mandatory and needs to be supplied with each and every call made to the API.

Error Format

Sample error JSON response message looks like the sample below.

{
    "errorId": "3aa5618a-13fb-4c96-9446-26ad6e98e5b5",
    "description": "A field with name 1eksterntSystem was not found in EksternId or its hierarchy.",
    "status": 400
}
Field Location Mandatory Type Description
$.errorId string unique identifier of the particular error, can be provided to the integration team to facilitate error investigation.
$.description string human readable description of the error occured
$.status number numeric code same as the HTTP status code returned