TravelyfeHelp
DevelopersAPI ReferenceSharing

Change A Member's Role

PATCH
/v1/itinerary/{id}/member/{userId}

Makes a member an editor or a viewer.

Only available to the Travelyfe apps. Tokens issued to other apps receive forbidden.

AuthorizationBearer <token>

A Travelyfe access token.

In: header

Path Parameters

id*string

The itinerary id (UUID).

Formatuuid
userId*string

The member's user id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/itinerary/497f6eca-6276-4993-bfeb-53cbbbba6f08/member/string" \  -H "Content-Type: application/json" \  -d '{    "role": "editor"  }'
Empty