Save Organization Config
Used to create or update organization configuration settings including role management and creation settings.
API Endpoint
| Property | Value |
|---|---|
| Request Method | POST |
| Request URL | https://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
| Field | Type | Description |
|---|---|---|
| Content-Type | application/json | Data type, must be application/json. |
| x-blocks-key | string | Project key for authentication. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| itemId | string | Yes | The organization ID for configuration. |
| allowCreationFromCloud | boolean | No | Allow user creation from Cloud platform. |
| allowCreationFromConstruct | boolean | No | Allow user creation from Construct platform. |
| roles | array | No | Available roles in the organization. |
| isMultiOrgEnabled | boolean | No | Whether multi-organization support is enabled. |
| projectKey | string | No | The project key associated with organization. |
Response
Success Response
Returns HTTP status 200 OK on successful save.
{
"errors": {},
"isSuccess": true
}
Response Fields
| Field | Type | Description |
|---|---|---|
| errors | object | Any errors encountered during save. |
| isSuccess | boolean | Indicates if save was successful. |