Update Onboarded Carrier | Genlogs API Docs

Update Onboarded Carrier Contact

Authentication

Permissions

The external-api-update-onboarded-carrier-contact permission is required to access this endpoint.

Endpoint

Headers

Path Params

Request Body:

Request Example:

curl --location --request PATCH 'https://api.genlogs.io/onboarded-carrier/contacts/ca387122-4153-418b-82df-03008cc9af9b' \
--header 'access-token: <your-api-access-token>' \
--header 'x-api-key: <your-x-api-key>' \
--header 'Content-Type: application/json' \
--data '{\n    "email": "peter_parker@test_email.com",\n    "name": "Peter Parker",\n    "phone": "3432434234"\n}'

Response:

Response Body:

200 OK – Contact Created Successfully

{
  "contact": {
    "contact_id": "bd849e72-09f0-4d19-8b20-e227cd4ef455",
    "name": "Peter Parker",
    "phone": "3432434234",
    "email": "peter.parker@marvel.com"
  }
}

400 Bad Request

Returned when:

{
    "detail": "Value error, at least one of name, email, or phone must be provided for update."
}

401 Unauthorized

When access-token is missing or expired.

{
    "detail": "Token is missing!"
}

403 Forbidden

{
    "detail": "User not allowed to access this endpoint"
}

404 Not Found

{
    "detail": "Preferred carrier contact not found."
}

Update an onboarded carrier contact

PATCH https://api.genlogs.io/onboarded-carrier/contacts/{contact_id}

Updates an existing onboarded carrier contact for the authenticated customer. Requires a valid JWT token and the appropriate permission. Only the fields provided in the request body will be updated. USDOT updates are not supported by this endpoint; including usdot in the PATCH body returns Bad Request before any persistence operation.

Authorizations

Path parameters

Body

Responses

{
  "contact": {
    "id": "bd849e72-09f0-4d19-8b20-e227cd4ef455",
    "name": "Peter Parker",
    "phone": "3432434234",
    "email": "peter.parker@marvel.com"
  }
}