Skip to content

Create service

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

Create a new service.

Media typeapplication/json
ServiceCreateRequest
object
name
required
Name
string
>= 1 characters <= 100 characters
category
required
Category

Real_estate, events, construction, inspection, mapping, agriculture, other

string
description
Any of:
string
base_price
required
Base Price
number
price_unit
Price Unit
string
default: per session <= 50 characters
includes
Any of:
Array
turnaround_days
Turnaround Days
integer
default: 3
default_pilot_id
Any of:
string
is_active
Is Active
boolean
default: true
sort_order
Sort Order
integer
0

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}