I A M
Get Permission Schema
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/permissions/schema"{}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}List Iam Resources
Path Parameters
Query Parameters
Resource type to list (must be listable)
Workspace ID (required for workspace-scoped types)
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/resources?resource_type=string"{
"resources": [
{
"id": "string",
"name": "string",
"description": "string"
}
]
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}List Org Policies
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/policies"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"policies": [
{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}
]
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Create Org Policy
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/iam/policies" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "permissions": [ "string" ] }'{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Org Policy
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/policies/string"{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Delete Org Policy
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/iam/policies/string"{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Update Org Policy
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/v1/orgs/string/iam/policies/string" \ -H "Content-Type: application/json" \ -d '{}'{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}List Org Roles
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/roles"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"roles": [
{
"role_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"policy_ids": [
"string"
],
"policies": [
{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}
],
"is_default": false,
"sso_group_names": [
"string"
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}
]
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Create Org Role
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/iam/roles" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"role_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"policy_ids": [
"string"
],
"policies": [
{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}
],
"is_default": false,
"sso_group_names": [
"string"
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Get Org Role
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/roles/string"{
"role_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"policy_ids": [
"string"
],
"policies": [
{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}
],
"is_default": false,
"sso_group_names": [
"string"
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Delete Org Role
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/iam/roles/string"{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Update Org Role
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://loading/v1/orgs/string/iam/roles/string" \ -H "Content-Type: application/json" \ -d '{}'{
"role_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"policy_ids": [
"string"
],
"policies": [
{
"policy_id": "string",
"org_id": "string",
"name": "string",
"description": "string",
"permissions": [
"string"
],
"resolved_permissions": [
{
"permission": "string",
"resource_type": "string",
"resource_id": "string",
"resource_name": "string",
"action": "string"
}
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}
],
"is_default": false,
"sso_group_names": [
"string"
],
"created_at": "string",
"updated_at": "string",
"created_by": "string"
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}List Org Iam Members
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://loading/v1/orgs/string/iam/members"{
"total": 0,
"has_more": false,
"next_cursor": "string",
"members": [
{
"user_id": "string",
"org_id": "string",
"username": "string",
"email": "string",
"full_name": "string",
"avatar_url": "string",
"role_ids": [
"string"
],
"roles_detail": [
{
"role_id": "string",
"name": "string",
"description": "string",
"is_default": false
}
],
"permissions": [
"string"
],
"status": "active",
"joined_at": "string"
}
]
}{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Assign Org Member Roles
Path Parameters
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/v1/orgs/string/iam/members" \ -H "Content-Type: application/json" \ -d '{ "user_id": "string", "role_ids": [ "string" ] }'null{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}Remove Org Iam Member
Path Parameters
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://loading/v1/orgs/string/iam/members/string"{
"error": "AUTHENTICATION_FAILED",
"message": "Authentication required",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 401
}{
"error": "FORBIDDEN",
"message": "You don't have permission to perform this action",
"details": {
"required_permission": "resource:action"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 403
}{
"error": "RESOURCE_NOT_FOUND",
"message": "The requested resource was not found",
"details": {
"resource_type": "example",
"resource_id": "xxx"
},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 404
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}{
"error": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred",
"details": {},
"timestamp": "2025-01-01T00:00:00.000000",
"status_code": 500
}