Authorization: Bearer ********************
{
"eventName": "Updated Meeting",
"eventType": 2,
"eventDate": "2024-02-05T14:00:00",
"description": "Updated project discussion",
"customerCode": "C000349"
}
curl --location --request PUT 'https://api.gofive.co.th/v1/customerEvent/' \
--header 'Ocp-Apim-Subscription-Key: <Your Subscriptin-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"eventName": "Updated Meeting",
"eventType": 2,
"eventDate": "2024-02-05T14:00:00",
"description": "Updated project discussion",
"customerCode": "C000349"
}'
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
{
"status": {
"code": "1000",
"description": "Success"
},
"data": {
"eventId": 13,
"eventName": "Example Edit",
"eventDate": "2025-01-01T15:38:43+0700",
"eventType": 4,
"description": "edit event"
}
}