PlanType
Definition
PlanType Type
- JSON
- Typescript
- Kotlin
planType.json
{
"id": 0,
"planTypeName": "",
"planTypeDescription": "",
"status": 0,
"createdAt": "",
"updatedAt": "",
}
Get PlanTypes
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/plan-type/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Get PlanType
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/plan-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Apply PlanType.ID
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/apply/plan-type/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Create PlanType
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/plan-type/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @planType.json
info
planType.json
{
"planTypeName": "",
"planTypeDescription": "",
"status": 0,
}
tip
success status: 201
Update PlanType
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/plan-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @planType.json
info
planType.json
{
"planTypeName": "",
"planTypeDescription": "",
"status": 0,
}
Update PlanType Partial
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/plan-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: planTypeName,planTypeDescription,status" \
-d @planType.json
info
planType.json
{
"planTypeName": "",
"planTypeDescription": "",
"status": 0,
}
Update PlanType Status
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/plan-type/${id}/status/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @planType.json
info
planType.json
{
"status": 0
}
Destroy PlanType
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/plan-type/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"