- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- Drivers
- Vehicles
- Gps Service Controller
- Service Logs
- Periodic Documents
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Update a Periodic Document
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
PATCH
/api/v1/periodocs/{uuid}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
uuid
string
required
Example:
3e34e65c-608f-4c67-a2ab-d30cf9880290
Body Params application/json
periodoc
object
required
periodoc_type_id
integer
optional
doc_no
string
optional
doc_date
string <date>
optional
start_date
string <date>
optional
due_date
string <date>
optional
title
string
optional
vehicle_id
integer
optional
base64_image
string
optional
Example
{
"periodoc": {
"doc_no": "ExampleDoc123"
}
}
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 PATCH 'https://demo.modaltrans.com/api/v1/periodocs/3e34e65c-608f-4c67-a2ab-d30cf9880290' \
--header 'Content-Type: application/json' \
--data-raw '{
"periodoc": {
"doc_no": "ExampleDoc123"
}
}'
Responses
🟢200Success
application/json
Body
uuid
string
required
periodoc_type_id
integer
required
doc_no
string
required
doc_date
string <date>
required
start_date
string <date>
required
due_date
string <date>
required
status
string
required
periodoc_type_name
string
required
Example
{
"uuid": "string",
"periodoc_type_id": 0,
"doc_no": "string",
"doc_date": "2019-08-24",
"start_date": "2019-08-24",
"due_date": "2019-08-24",
"status": "string",
"periodoc_type_name": "string"
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-08-29 12:19:27