Skip to main content

Save Organization Config

Used to create or update organization configuration settings including role management and creation settings.

API Endpoint

PropertyValue
Request MethodPOST
Request URLhttps://api.seliseblocks.com/idp/v1/Iam/SaveOrganizationConfig

Request

Request Example

curl -X POST 'https://api.seliseblocks.com/idp/v1/Iam/SaveOrganizationConfig' \
-H 'Content-Type: application/json' \
-H 'x-blocks-key: YOUR_PROJECT_KEY' \
-d '{
"itemId": "org_123",
"allowCreationFromCloud": true,
"allowCreationFromConstruct": true,
"roles": ["admin", "user", "manager"],
"isMultiOrgEnabled": true,
"projectKey": "YOUR_PROJECT_KEY"
}'

Request Headers

FieldTypeDescription
Content-Typeapplication/jsonData type, must be application/json.
x-blocks-keystringProject key for authentication.

Request Body

FieldTypeRequiredDescription
itemIdstringYesThe organization ID for configuration.
allowCreationFromCloudbooleanNoAllow user creation from Cloud platform.
allowCreationFromConstructbooleanNoAllow user creation from Construct platform.
rolesarrayNoAvailable roles in the organization.
isMultiOrgEnabledbooleanNoWhether multi-organization support is enabled.
projectKeystringNoThe project key associated with organization.

Response

Success Response

Returns HTTP status 200 OK on successful save.

{
"errors": {},
"isSuccess": true
}

Response Fields

FieldTypeDescription
errorsobjectAny errors encountered during save.
isSuccessbooleanIndicates if save was successful.