Skip to content

Update service

PATCH
/api/v1/services/{service_id}
curl --request PATCH \
--url https://app.ayna.com/api/v1/services/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "category": "example", "description": "example", "base_price": 1, "price_unit": "example", "includes": [ "example" ], "turnaround_days": 1, "default_pilot_id": "example", "is_active": true, "sort_order": 1 }'

Update a service.

service_id
required
Service Id
string
Media typeapplication/json
ServiceUpdateRequest
object
name
Any of:
string
>= 1 characters <= 100 characters
category
Any of:
string
description
Any of:
string
base_price
Any of:
number
price_unit
Any of:
string
<= 50 characters
includes
Any of:
Array
turnaround_days
Any of:
integer
default_pilot_id
Any of:
string
is_active
Any of:
boolean
sort_order
Any of:
integer

Example generated

{
"name": "example",
"category": "example",
"description": "example",
"base_price": 1,
"price_unit": "example",
"includes": [
"example"
],
"turnaround_days": 1,
"default_pilot_id": "example",
"is_active": true,
"sort_order": 1
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}