Update Onboarded Carrier
Update an onboarded carrier contact associated with the specific contact_id. This endpoint allows customers to update their own validated contact information.
Authentication
Include your
Access-Tokenin the header of your requests.Include your
x-api-keyThe API key provided by GenLogs. This header must be included in the request.
Permissions
The external-api-update-onboarded-carrier-contact permission is required to access this endpoint.
Endpoint
URL:
https://api.genlogs.io/onboarded-carrier/contacts/{contact_id}Method:
PATCH
Headers
Access-Token: (string, required): Access token obtained from the "Create Access Token" endpoint.
X-Api-Key (string, required): The API key provided by GenLogs.
Path Params
contact_id (string, required): Existent contact ID, to de updated.
Request Body:
name (string, optional): Contact name.
phone (string, optional): Contact phone number
email (string, optional): Contact email address.
Request Example:
Response:
200 OK: A JSON object containing updated information of carrier contact.
400 Bad Request: If required parameters are missing or invalid.
401 Unauthorized: If the authentication credentials (Access-Token) is missing or incorrect.
403 Forbidden: If the permission has not been added to your user.
404 Not Found: If the provided
contact_iddoesn't exist or is not created.500 Internal Server Error: If there is an issue on the server that prevents processing the request.
Response Body:
200 OK – Contact Created Successfully
400 Bad Request
Returned when:
All of
name,phone, andemailare null.All ofname,phone, andemailare empty strings.All the provided values are exactly the same as stored
401 Unauthorized
When access-token or
403 Forbidden
404 Not Found
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.
JWT provided directly in the Access-Token header. No "Bearer" prefix.
API key provided by GenLogs.
Unique identifier of the contact to update.
bd849e72-09f0-4d19-8b20-e227cd4ef455Fields to update. At least one must be provided.
Contact name.
Peter ParkerContact phone number.
3432434234Contact updated successfully.
Bad Request – Missing or invalid fields.
Unauthorized – Invalid or missing Access-Token.
Forbidden – The user lacks required permission or does not own the contact.
Contact not found.
Internal Server Error.
Last updated