Skip to content

Create crew member

POST
/api/v1/crew/
curl --request POST \
--url https://app.ayna.com/api/v1/crew/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "first_name": "example", "last_name": "example", "email": "example", "phone": "example", "roles": [ "example" ], "notes": "example" }'

Create a new crew member.

Media typeapplication/json
CrewCreateRequest
object
first_name
required
First Name
string
>= 1 characters <= 100 characters
last_name
required
Last Name
string
>= 1 characters <= 100 characters
email
required
Email
string
<= 255 characters
phone
Any of:
string
<= 20 characters
roles
Roles

Crew role names

Array<string>
notes
Any of:
string

Example generated

{
"first_name": "example",
"last_name": "example",
"email": "example",
"phone": "example",
"roles": [
"example"
],
"notes": "example"
}

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}