Skip to main content
POST
/
v1
/
rights
/
bases
Register a basis
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    description: '<string>',
    effectiveFrom: '2023-11-07T05:31:56Z',
    effectiveUntil: '2023-11-07T05:31:56Z'
  })
};

fetch('https://sandbox.api.enfinitos.com/v1/rights/bases', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "basis": {
      "id": "<string>",
      "orgId": "<string>",
      "description": "<string>",
      "effectiveFrom": "2023-11-07T05:31:56Z",
      "effectiveUntil": "2023-11-07T05:31:56Z",
      "contentHash": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    }
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Body

application/json
kind
enum<string>
required
Available options:
CIVIC,
PROPERTY,
TRADEMARK,
CONTRACTUAL
description
string
required
Required string length: 1 - 500
effectiveFrom
string<date-time>
required
effectiveUntil
string<date-time> | null

Optional. If provided, must not be earlier than effectiveFrom. Defaults to null (open-ended).

Response

The registered basis.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"