Skip to main content
PUT
https://app-stage.agdejar.sa
/
tenant
/
v1
/
parties
/
{id}
curl --request PUT \
  --url /tenant/v1/parties/1 \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {access_token}' \
  --data '{
    "id_number": "1016690206",
    "full_name": "فلان الفلاني تجريبي",
    "phone_number": "+966567890317",
    "date_of_birth": "1990-01-01",
    "date_of_birth_hijri": "1410-05-12",
    "region_id": 2,
    "city_id": 57
  }'

Path Parameters

id
integer
required
The ID of the party to update

Headers

Accept
string
required
Must be “application/json”

Body

id_number
string
required
National ID number
full_name
string
required
Full name of the party
phone_number
string
required
Phone number with country code
date_of_birth
string
Date of birth in YYYY-MM-DD format
date_of_birth_hijri
string
Date of birth in Hijri calendar
region_id
integer
Region ID
city_id
integer
City ID
curl --request PUT \
  --url /tenant/v1/parties/1 \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer {access_token}' \
  --data '{
    "id_number": "1016690206",
    "full_name": "فلان الفلاني تجريبي",
    "phone_number": "+966567890317",
    "date_of_birth": "1990-01-01",
    "date_of_birth_hijri": "1410-05-12",
    "region_id": 2,
    "city_id": 57
  }'