Edit User
Path Parameters
id string required
reference_id
Header Parameters
Nonce string required
random 16 bytes alphanumerics
Credential string required
Please follow the OpenAPI authentication section
Example: d900da8b-6e16-4a85-8a66-05d29ac53f24/20240501120123/Wonder-RSA-SHA256
Signature string required
Please follow the OpenAPI authentication section
Example: lM42cgyuLS98Dieydc8K2OD3KwYkOXibpV9pFvr/R0i/830M/FPKUKbav2UBBN3M3EdPk/PpvKQlvBNT+NbEg20CKuiDTZWDc3r7KiA1pdZsui/57XCVhC2s01W8jEM+G5lS362+p8+E0K6UKQDrJMyVpbDT31XSkSJIxae+uDi2nJr4DnIkemeU2LlNDRPPGe9NeX7z3B3N3LwIiQgKMyauPqAjro0UrZykQM9pv4UySRSU2cT8EcjQmyKxbzyuR2A47PyeodJvotlIthdfCHIxG52D06tpRJlRVbUdvxSg14bFiPbr3FwCvruZlbR15gOanJCqE4wp4fC8qEXXsg==
Content-type string required
Example: application/json
x-request-id string
Example: d900da8b-6e16-4a85-8a66-05d29ac53f24
x-i18n-lang string
from zh-HK, zh-CN, or en
application/json
Request Body
user object required
Responses
- 200
Response Headers
application/json
Schema
Example (from schema)
Example
Schema
code error code required
message error message required
data object required
{
"code": 0,
"message": "string",
"data": {
"user": {
"id": "string",
"user_id": "string",
"reference_id": "string",
"calling_code": "string",
"phone_number": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"p_created_at": "string"
}
}
}
{
"code": 200,
"data": {
"user": {
"id": "xx",
"user_id": "xx",
"reference_id": "xx",
"calling_code": "xx",
"phone_number": "xx",
"document_type": "xx",
"document_number": "xx",
"first_name": "xx",
"last_name": "xx",
"issuing_country": "xx",
"date_of_birth": "xx"
}
},
"message": "succeed"
}
PUT /svc/ts/api/v1/openapi/user/:id
Request
Request
curl / cURL
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
python / requests
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
go / native
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
nodejs / axios
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
ruby / Net::HTTP
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
csharp / RestSharp
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
php / cURL
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
java / OkHttp
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'
powershell / RestMethod
curl -L -X PUT 'https://developer.wonder.today/svc/ts/api/v1/openapi/user/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"user": {
"calling_code": "string",
"phone_number": "string",
"document_type": "string",
"first_name": "string",
"last_name": "string",
"date_of_birth": "string",
"issuing_country": "string"
}
}'