Delete project role assignment
Deletes a single explicit project role assignment by assignment id.
/user-management/1/project-role-assignments/{assignmentId}Authorizations
AuthorizationstringrequiredContact Amplitude Support to obtain your organization's org API key and org secret key.Send them as HTTP Basic credentials on every request: org API key in the username field, org secret key in the password field. Also include orgId as a query parameter for your organization.401: invalid credentials. 403 (org_not_enrolled): your organization is not enabled for this API.
Path parameters
assignmentIdstringrequiredOpaque id of the explicit project role assignment to fetch, update, or delete.
Query parameters
orgIdintegerrequiredOrganization id for the authenticated API caller. Must match the organization tied to the org key pair in the Authorization header.
min: 1Response
application/jsondeletedobjectrequiredA project-scoped role assignment for a user or group. id is an opaque, non-sequential identifier used by GET/PATCH/DELETE on /project-role-assignments/{id}. Treat it as an opaque string; do not parse or infer other ids from it.
{"id":"q1dGVFo3aM6kXn2pR8vQwZ","principalType":"user","principalId":"alice@company.com","projectId":187520,"roleId":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}Show child attributes
idstringrequiredmin length: 1principalTypestringrequiredWhether the assignment targets an individual user (user) or a group (group)
usergroupuserprincipalIdstringrequiredmin length: 1projectIdintegerrequiredmin: 0roleIdstringrequiredformat: uuidmessagestringrequiredmin length: 1typestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullabletypestringrequiredRFC 7807 problem type URI
format: urititlestringrequiredstatusintegerrequireddetailstringnullableinstancestringnullableerror_codestringrequiredinvalid_requestauthentication_requiredinsufficient_permissionsorg_id_mismatchorg_not_enrollednot_foundconflictrate_limitedinternal_errorretryablebooleanrequiredretry_after_secondsintegernullableWas this helpful?