SmartGare
API referenceEndpoints

Correct an occupant

Replaces descriptive and contact details and records the previous facts, actor and correction time. **Required permission:** `referential.occupant:write`

PUT/referential/v1/occupants/{id}

Replaces descriptive and contact details and records the previous facts, actor and correction time.

Required permission: referential.occupant:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectOccupantRequest

Response Body

*/*

*/*

curl -X PUT "https://example.com/referential/v1/occupants/string" \  -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"}