Skip to main content
PUT
/
v1
/
api
/
agencies
/
{id}
Update an agency
curl --request PUT \
  --url http://localhost:3091/v1/api/agencies/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "address": "<string>",
  "city": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "email": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "description": "<string>",
  "rccm": "<string>",
  "address": "<string>",
  "city": "<string>",
  "country": "<string>",
  "phone": "<string>",
  "email": "<string>",
  "logoUrl": "<string>",
  "kycStatus": "<string>",
  "status": "<string>",
  "siret": "<string>",
  "ownerId": 123,
  "ownerName": "<string>",
  "walletBalance": 123,
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Path Parameters

id
integer<int64>
required

Body

application/json
name
string
Maximum string length: 255
description
string
address
string
Maximum string length: 500
city
string
Maximum string length: 100
country
string
Maximum string length: 100
phone
string
Maximum string length: 30
email
string

Response

Agency updated successfully

id
integer<int64>
name
string
description
string
rccm
string
address
string
city
string
country
string
phone
string
email
string
logoUrl
string
kycStatus
string
status
string
siret
string
ownerId
integer<int32>
ownerName
string
walletBalance
number
createdAt
string<date-time>