Modify organization details
Updates organization information including description, email, website URL, and tags. Only non-null fields in the request will be updated.
Path parameters
-
External ID of the organization to modify
Minimum length is
1
, maximum length is100
.
POST
/organizations/{organization-id}/modify
curl \
--request POST 'http://api.example.com/organizations/org-12345/modify' \
--header "Content-Type: application/json" \
--data '{"tags":["technology","startup","ai"],"email":"contact@example.com","description":"Updated organization description","website-url":"https://www.example.com"}'
Request examples
Update all fields
{
"tags": [
"technology",
"startup",
"ai"
],
"email": "contact@example.com",
"description": "Updated organization description",
"website-url": "https://www.example.com"
}
{
"description": "New description only"
}
Response examples (200)
{
"success": true
}
Response examples (400)
Validation failed
{
"error": "Bad Request",
"details": {
"validation_errors": {
"organization-id": "Organization Id is required"
}
},
"message": "Validation failed",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}
{
"error": "Bad Request",
"message": "Constraint violation: Organization Id is required",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}
Response examples (401)
Invalid token
{
"error": "401 UNAUTHORIZED",
"message": "Token not valid: Token has expired",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}
{
"error": "401 UNAUTHORIZED",
"message": "Access Denied",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}
Response examples (403)
{
"error": "Forbidden",
"message": "Insufficient permissions to modify this organization",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}
Response examples (404)
{
"error": "404 NOT_FOUND",
"message": "Organization not found",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}
Response examples (500)
{
"error": "Internal Server Error",
"message": "An unexpected error occurred. Please try again later.",
"success": false,
"timestamp": "2025-01-15T10:30:00Z"
}