- Introduction
- Activity
- Authentication API
- Customer
- Case
- Deal
- Employee
- Expense
- Product
- Create Or Update Products
- Get a Product Ticket
- Get Products With Take & Status
- Get a Product by ProductCode
- Get Product Groups
- Get Product Properties
- Get Products By Filter
- Verify Serial Number
- /v3/Products/serials/status
- Create or Update Codeguard Products
- Update Product Stock
- /v1/products/units
- /v1/products/units Copy
- Quotation
- SalesOrder
- Webhooks
- Task
- Setting
Edit Customer Event
PUT
https://api.gofive.co.th/v1/customerEvent/{eventId}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
eventId
integer
required
Header Params
Content-Type
string
required
Example:
application/json
Ocp-Apim-Subscription-Key
string
required
Example:
<Your Subscriptin-key>
Body Params application/json
eventName
string
required
eventType
integer
required
eventDate
string
required
description
string
optional
customerCode
string
required
Example
{
"eventName": "Updated Meeting",
"eventType": 2,
"eventDate": "2024-02-05T14:00:00",
"description": "Updated project discussion",
"customerCode": "C000349"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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"
}'
Responses
🟢200Success
application/json
Body
status
object
required
code
string
required
สถานะของ Business Code ถ้า
Success = 1000
Error 1 ตัว = 4001
Error มากกว่า 1 ตัว = 4002
หรือเป็น Subcode ที่ต้องการจะแสดงเพื่อสื่อความหมายของ Error โดย subcode จะเป็นตัวเดียวกับ business error code หรือไม่ก็ได้ เพื่อความสะดวกในการแสดงผล
description
string
required
data
object
required
eventId
integer
required
eventName
string
required
eventDate
string
required
eventType
integer
required
description
string
required
Example
{
"status": {
"code": "1000",
"description": "Success"
},
"data": {
"eventId": 13,
"eventName": "Example Edit",
"eventDate": "2025-01-01T15:38:43+0700",
"eventType": 4,
"description": "edit event"
}
}
🟠400Bad Request
🟠401Unauthorized
🟠401User authentication required V2.
Modified at 2025-03-03 06:31:47