/api/v1/locations/{id}/members/{membershipId} (PATCH)
PATCH
/api/v1/locations/{id}/members/{membershipId}
const url = 'https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"role":"admin","expiresAt":"2026-04-15T12:00:00Z"}'};
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://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "role": "admin", "expiresAt": "2026-04-15T12:00:00Z" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
membershipId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
membershipId
required
string format: uuid
userId
required
string format: uuid
displayName
required
string
email
required
string | null
username
required
string | null
role
required
string
managed
required
boolean
managedByName
required
string | null
twoFactorEnabled
required
boolean
isYou
required
boolean
rowVersion
required
integer
Example
{ "role": "owner"}