Skip to content

Update crew member

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

Update a crew member.

crew_id
required
Crew Id
string
Media typeapplication/json
CrewUpdateRequest
object
first_name
Any of:
string
>= 1 characters <= 100 characters
last_name
Any of:
string
>= 1 characters <= 100 characters
email
Any of:
string
<= 255 characters
phone
Any of:
string
<= 20 characters
roles
Any of:
Array<string>
status
Any of:
string
notes
Any of:
string

Example generated

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

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}