Applications
Set member role
Set a workspace member's role in an application. Workspace owners and admins are always admins of every application, so the returned role is their effective role. Requires applications:write (workspace keys) or members:write scope. Application keys can only manage roles on their own application.
PUT
/applications/{application_id}/members/{user_id}Authorization
bearerAuth AuthorizationBearer <token>
API key. Bearer authentication header of the form Bearer <token>, where <token> is your Workspace or Application API key.
In: header
Path Parameters
application_id*string
Application ID.
user_id*string
User ID (UUID).
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 PUT "https://example.comapplications/aBc1234/members/9f4b2c1e-7a3d-4e8f-b6c5-1d2e3f4a5b6c" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<'EOF'{ "role": "qa"}EOF{ "message": "Application member role updated successfully.", "data": { "id": "uSr1234", "name": "Jane Smith", "email": "jane@example.com", "profile_photo_url": "https://uploads.buildstash.com/B7kLmNpQrStUvWx.png", "role": "qa" }}{ "message": "Unauthorized"}{ "message": "This action requires 'resource:action' scope."}{ "message": "Not found."}{ "message": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }}