createTaskPublisher
Add one or more participants to a case.
Request:
example
{
"task_num": "202402220000021",
"customer": [{
"customer_title": "Mr.",
"customer_name": "name",
"customer_id_num": "unique_id",
"customer_country_code": "+886",
"customer_phone": "0911211211",
"customer_email": "[email protected]"
}]
}
Parameter | Meaning | Type | Required | Default value | Description |
---|---|---|---|---|---|
HEADERS | |||||
Authorization | After logging in, the server returns an Authorization token. | string | Y | Bearer | |
BODY | |||||
task_num | task number | string | Y | ||
customer | add pushpublishers to the task | array | Y | ||
customer.customer_title | Customer Salutation | string | |||
customer.customer_name | Customer Name | string | Y | ||
customer.customer_id_num | a unique identifiable value for customer | string | Y | ||
customer.customer_country_code | Customer Phone Country Code | string | |||
customer.customer_phone | Customer Phone Number | string | |||
customer.customer_email | Customer email | string |
Response:
{
"status": 1,
"message": "customer member success"
}
Parameter | Meaning | Type | Existed | Default value | Description |
---|---|---|---|---|---|
BODY | |||||
status | response status | string | Y | 0: fail | |
1: success | |||||
2: warning | |||||
message | message | string | Y | “” | Error messages should be shown when there are errors. |
Error code:
The following is a table of error messages returned by the API.
Code | Status | Error | Message |
---|---|---|---|
200 | 1 | customer member success | |
0 | error message | ||
404 | Resource Not Found | ||
403 | Access to the requested resource is not allowed |