curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/organization-members/{id} \
--header 'Content-Type: application/json' \
--data '{
"roleId": "<string>",
"privateMeta": "<any>",
"publicMeta": "<any>"
}'
{
"id": "<string>",
"organizationId": "<string>",
"userId": "<string>",
"roleId": "<string>",
"role": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"user": {
"id": "<string>",
"name": "<string>",
"identifier": "<string>",
"imageUri": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"publicMeta": "<any>",
"privateMeta": "<any>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Successful response
The response is of type object
.
curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/organization-members/{id} \
--header 'Content-Type: application/json' \
--data '{
"roleId": "<string>",
"privateMeta": "<any>",
"publicMeta": "<any>"
}'
{
"id": "<string>",
"organizationId": "<string>",
"userId": "<string>",
"roleId": "<string>",
"role": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"user": {
"id": "<string>",
"name": "<string>",
"identifier": "<string>",
"imageUri": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"publicMeta": "<any>",
"privateMeta": "<any>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/organization-members/{id} \
--header 'Content-Type: application/json' \
--data '{
"roleId": "<string>",
"privateMeta": "<any>",
"publicMeta": "<any>"
}'
{
"id": "<string>",
"organizationId": "<string>",
"userId": "<string>",
"roleId": "<string>",
"role": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"user": {
"id": "<string>",
"name": "<string>",
"identifier": "<string>",
"imageUri": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"publicMeta": "<any>",
"privateMeta": "<any>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Successful response
The response is of type object
.
curl --request PUT \
--url https://api.pxyz.dev/api/v0/auth/organization-members/{id} \
--header 'Content-Type: application/json' \
--data '{
"roleId": "<string>",
"privateMeta": "<any>",
"publicMeta": "<any>"
}'
{
"id": "<string>",
"organizationId": "<string>",
"userId": "<string>",
"roleId": "<string>",
"role": {
"id": "<string>",
"name": "<string>",
"description": "<string>",
"permissions": [
"<string>"
],
"tenantId": "<string>",
"_count": {
"users": 123,
"members": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"user": {
"id": "<string>",
"name": "<string>",
"identifier": "<string>",
"imageUri": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"publicMeta": "<any>",
"privateMeta": "<any>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}