Хэрэглэгчийн мэдээлэл шинэчлэх
Хэрэглэгчийн мэдээллийг шинэчлэх.
PUT
Баталгаажуулалт
ЭрхX-API-KEY
X-API-KEY баталгаажуулалт X-API-KEY: <key> хэлбэртэй бөгөөд token нь таны баталгаажуулах түлхүүр юм.
Замын параметрүүд
subscriberIdnumberЗаавал
The ID of the subscriber to update.
Хүсэлт
Энэ төгсгөлийн цэг нь объект хүлээж авна.
namestring эсвэл nullЗаавал биш
The full name of the subscriber.
phonenumber эсвэл nullЗаавал биш
The contact phone number of the subscriber.
adTrackingstring эсвэл nullЗаавал биш
Ad tracking identifier for analytics.
ipAddressstring эсвэл nullЗаавал биш
The IP address from where the subscriber registered.
subscriptionSourcestring эсвэл nullЗаавал биш
The source or channel through which the subscriber signed up.
additionalNotestext эсвэл nullЗаавал биш
Any additional notes or comments about the subscriber.
countryselect эсвэл nullЗаавал биш
The country where the subscriber is located (auto-creates address).
cityselect эсвэл nullЗаавал биш
The city where the subscriber is located (auto-creates address).
address1string эсвэл nullЗаавал биш
The primary street address of the subscriber.
address2string эсвэл nullЗаавал биш
The secondary street address of the subscriber.
zipCodestring эсвэл nullЗаавал биш
The postal or zip code of the subscriber's address.
Хариулт
Амжилттай хариулт
Алдаанууд
404Not Found
400Bad Request
500Internal Server Error
PUT/api/v2/subscribers/:subscriberId
$curl -X PUT https://app.maildy.mn/api/v2/subscribers/:subscriberId \
>-H "X-API-KEY: <key>" \
>-H "Content-Type: application/json"200Success - Subscriber successfully updated
1{
2 "status": "number",
3 "statusText": "string"
4}