Update organization details

Allows for updating of organization details.

PATCH
https://identity.krystal.io/api/v1/client/organizations/{organization}

If successful, this endpoint will return a 200 OK status.

Scopes

One of the following scopes are required to use this endpoint.

Arguments

The following arguments are supported for this endpoint.

Name Type Default Value

organization Required

Organization Lookup None

properties Required

OrganizationUpdateProperties None

Potential Errors

The following errors may occur during this request.

Details HTTP status

organization_not_found

No organization was found matching any of the criteria provided in the arguments

404 Not Found

permission_denied

The authenticated identity is not permitted to perform this action

403 Forbidden

validation_error

An error ocurred with the input provided

422 Unprocessable Entity

Returned Object

When the request is successful, you can expect an object matching the specification below to be returned.

{
    organization: Organization {
        id: String
        name: String
        identifier: String
        time_zone: String?
        updated_at: Unix Timestamp
        two_factor_required: Boolean
        managed: Boolean
        parent_id: String?
        users: [ OrganizationUser {
            user_id: String
            organization_id: String
            organization_name: String
            organization_identifier: String
            organization_managed: Boolean
            organization_parent_id: String?
            owner: Boolean
            organization_updated_at: Unix Timestamp
            roles: [ String? ]
        } ]
        policy: OrganizationPolicy? {
            name: String
            type: OrganizationPolicyTypeEnum
            limits: [ OrganizationPolicyLimit {
                key: String
                value: String?
                value_type: OrganizationPolicyFieldValueTypeEnum
                label: String
                suffix: String?
                sub_text: String?
            } ]
        }
    }
}