Create crew member
POST
/api/v1/crew/
const url = 'https://app.ayna.com/api/v1/crew/';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"first_name":"example","last_name":"example","email":"example","phone":"example","roles":["example"],"notes":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
CrewCreateRequest
object
Example generated
{ "first_name": "example", "last_name": "example", "email": "example", "phone": "example", "roles": [ "example" ], "notes": "example"}Responses
Section titled “Responses”Created
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}