SmartGare
API referenceEndpoints

Correct a carrier

Corrects a carrier's name, whether it is a natural or a legal person, its contact details and its address. **Required permission:** `referential.carrier:write`

PATCH/referential/v1/carriers/{id}

Corrects a carrier's name, whether it is a natural or a legal person, its contact details and its address.

Required permission: referential.carrier:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectCarrierRequest

Response Body

*/*

*/*

*/*

curl -X PATCH "https://example.com/referential/v1/carriers/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "address_city": "string",  "address_line1": "string",  "address_line2": "string",  "address_zip": "string",  "code": "string",  "created_at": "2019-08-24T14:15:22Z",  "email": "string",  "id": "string",  "legal_identifier": "string",  "logo": "string",  "name": "string",  "person_type": "string",  "phone_number": "string",  "status": "string",  "suspension_reason": "string",  "ticketing_model": "string",  "updated_at": "2019-08-24T14:15:22Z",  "website": "string"}