Update crew member
PATCH
/api/v1/crew/{crew_id}
const url = 'https://app.ayna.com/api/v1/crew/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"first_name":"example","last_name":"example","email":"example","phone":"example","roles":["example"],"status":"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 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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”crew_id
required
Crew Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
CrewUpdateRequest
object
Example generated
{ "first_name": "example", "last_name": "example", "email": "example", "phone": "example", "roles": [ "example" ], "status": "example", "notes": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}