curl --request PUT \
--url https://api.example.com/app/v1/organizations/{organizationId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'Update an organization’s details
curl --request PUT \
--url https://api.example.com/app/v1/organizations/{organizationId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'{
"name": "Acme Corporation",
"description": "Updated organization description"
}
{
"id": "org123",
"name": "Acme Corporation",
"slug": "acme-corp",
"description": "Updated organization description",
"status": "active",
"settings": {
"timezone": "America/Los_Angeles",
"locales": ["en-US", "es-ES", "fr-FR"],
"features": {
"assetOptimization": true,
"advancedPermissions": true
}
},
"roles": {
"role123": "Editor",
"role456": "Viewer"
},
"metadata": {
"createdBy": "user123",
"maxProjects": 10
},
"subscription": {
"tierId": "tier_pro",
"status": "active",
"currentPeriodStart": "2024-03-01T00:00:00Z",
"currentPeriodEnd": "2024-04-01T00:00:00Z"
},
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-03-21T10:00:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Organization org123 was not found"
}
}
{
"error": {
"code": "FORBIDDEN",
"message": "This request is forbidden for your roles"
}
}
curl -X PUT "https://api.metabind.ai/app/v1/organizations/org123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corporation",
"description": "Updated organization description"
}'