Save Organization
Used to create or update an organization configuration.
API Endpoint
| Property | Value |
|---|---|
| Request Method | POST |
| Request URL | https://api.seliseblocks.com/idp/v1/Iam/SaveOrganization |
Request
Request Example
curl -X POST 'https://api.seliseblocks.com/idp/v1/Iam/SaveOrganization' \
-H 'Content-Type: application/json' \
-H 'x-blocks-key: YOUR_PROJECT_KEY' \
-d '{
"projectKey": "YOUR_PROJECT_KEY",
"name": "Acme Corporation",
"itemId": "org_123",
"isEnable": true
}'
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 |
|---|---|---|---|
| projectKey | string | Yes | The project key associated with organization. |
| name | string | Yes | The name of the organization. |
| itemId | string | No | Organization ID (required for updates). |
| isEnable | boolean | No | Whether the organization is enabled. |
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. |