SmartGare
API referenceEndpoints

Register an occupant

Registers a company or person; a legal identifier can be claimed only once. **Required permission:** `referential.occupant:write`

POST/referential/v1/occupants

Registers a company or person; a legal identifier can be claimed only once.

Required permission: referential.occupant:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RegisterOccupantRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/occupants" \  -H "Content-Type: application/json" \  -d '{    "kind": "COMPANY",    "name": "string"  }'
{  "address_city": "string",  "address_line1": "string",  "address_line2": "string",  "address_zip": "string",  "corrected_at": "2019-08-24T14:15:22Z",  "corrected_by": "string",  "created_at": "2019-08-24T14:15:22Z",  "email": "string",  "id": "string",  "kind": "COMPANY",  "legal_identifier": "string",  "name": "string",  "phone_number": "string",  "updated_at": "2019-08-24T14:15:22Z",  "website": "string"}