Ana içeriğe geç

Delete Consumer Organization

Endpoint​

DELETE /apiops/projects/{projectName}/consumer-organizations/{code}

Authentication​

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request​

Path Parameters​

ParameterTypeRequiredDescription
projectNamestringYesProject name
codestringYesCode of the organization

Response​

204 No Content, without a body.

Errors​

StatusError keyCause
400malformedRequestAn identity source manages the organization
404resourceNotFoundThe code is unknown
409dependencyConflictThe organization still has child organizations, consumers, applications or portal accounts. params.reason names the blocker
409lifecycleConflictAnother delete holds the barrier (params.reason = deleteInProgress)

cURL Example​

curl -X DELETE \
"https://demo.apinizer.com/apiops/projects/MyProject/consumer-organizations/acme-partners" \
-H "Authorization: Bearer YOUR_TOKEN"

Permissions​

  • User must have IDENTITY + MANAGE permission in the project
  • A project outside the scope of the caller answers 404 resourceNotFound, never 403
  • The admin project has no consumer organizations: a call on it answers 400 malformedRequest (params.reason = platformScopeNotSupported)