Link user to organization or update subscription
Link a user to an organization or update the user's subscription within that organization.
If subscription is PRO, the relation is marked as externally managed.
Path Parameters
Organization ID (UUID).
uuidUser ID (UUID).
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"
}
}