Link user to organization or update subscription
Create or update a user's subscription in an organization.
Path Parameters
Organization identifier.
uuidWingfield user identifier.
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response
200Error Responses
invalid_schema
Request validation failed.
missing_api_token
No authentication token provided.
invalid_api_token
Invalid or expired authentication token.
scope_permission_denied
Insufficient permissions for this operation.
organization_access_denied
Service is not granted access to the organization.
pro_user_quota_exceeded
Pro-user quota exceeded for this external service.
organization_not_found
Organization was not found.
user_not_found
User was not found.
internal_server_error
Unexpected server error.
curl -X PUT "https://dev.wingfield.systems/api/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/subscription" \ -H "Content-Type: application/json" \ -d '{ "subscription": "PRO" }'{}{
"error": {
"type": "invalid_schema",
"message": "string",
"issues": [
{}
]
}
}{
"error": {
"type": "missing_api_token",
"message": "string"
}
}{
"error": {
"type": "scope_permission_denied",
"message": "string"
}
}{
"error": {
"type": "organization_not_found",
"message": "string"
}
}{
"error": {
"type": "internal_server_error",
"message": "string"
}
}Claim organization relation POST
Claim or confirm an organization relation using a connect token.
Unlink organization relation DELETE
Delete an existing organization relation for an external service. This endpoint is idempotent and returns `200 {}` even when no relationship row exists. Deleting the relation also permanently deletes all court mappings and court bookings your service created for this organization. After re-claiming the organization, court mappings have to be created again.