Update Counterparty
PUT /api/v1/Counterparties/update
Description
This endpoint is used to update an existing counterparty.
Headers:
- None
ApiKey:
- No API key required
Content-Type:
-
text/plain
-
application/json
-
text/json
Query Parameters:
- version: string, required
Request Body:
- UpdateCounterpartyRequest object.
URL:
{{baseUrl API url}}/api/v1/Counterparties/update
Response:
- A CounterpartyResponseResponse object.
Error Codes:
-
400: Bad Request
-
404: Resource not found
-
500: Internal server error
Example:
Request:
PUT /api/v1/Counterparties/update
Content-Type: application/json
{
"counterpartyId": "1234567890",
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890"
}
Response:
HTTP/1.1 200 OK
{
"counterpartyId": "1234567890",
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890"
}
Method: PUT
/api/v1/Counterparties/update
Headers
| Content-Type | Value |
|---|---|
Content-Type | application/json |
Headers
| Content-Type | Value |
|---|---|
| Accept | text/plain |
Body (raw)
{
"id": "<uuid>",
"name": "<string>",
"email": "<string>",
"address": "<string>",
"lei": "<string>",
"country": "<string>",
"phoneCode": "<string>",
"phoneNumber": "<string>",
"state": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
Response: 200
{
"succeeded": "<boolean>",
"message": "<string>",
"errors": [
"<string>",
"<string>"
],
"data": {
"id": "<uuid>",
"userId": "<uuid>",
"name": "<string>",
"email": "<string>",
"address": "<string>",
"lei": "<string>",
"country": "<string>",
"phoneCode": "<string>",
"phoneNumber": "<string>",
"state": "<string>",
"city": "<string>",
"postalCode": "<string>",
"merchantId": "<uuid>"
}
}
LANGUAGE
CURL REQUEST
curl --request PUT \
--url /api/v1/Counterparties/update \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!