curl -X POST https://your-domain.com/api/organizations \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Forest Solutions Inc",
"rif": "J-456789123",
"countryId": "660e8400-e29b-41d4-a716-446655440001"
}'
{
"id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Forest Solutions Inc",
"rif": "J-456789123",
"countryId": "660e8400-e29b-41d4-a716-446655440001",
"createdAt": "2024-03-15T10:30:00.000Z"
}
Create a new organization
curl -X POST https://your-domain.com/api/organizations \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Forest Solutions Inc",
"rif": "J-456789123",
"countryId": "660e8400-e29b-41d4-a716-446655440001"
}'
{
"id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Forest Solutions Inc",
"rif": "J-456789123",
"countryId": "660e8400-e29b-41d4-a716-446655440001",
"createdAt": "2024-03-15T10:30:00.000Z"
}
curl -X POST https://your-domain.com/api/organizations \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Forest Solutions Inc",
"rif": "J-456789123",
"countryId": "660e8400-e29b-41d4-a716-446655440001"
}'
{
"id": "880e8400-e29b-41d4-a716-446655440003",
"name": "Forest Solutions Inc",
"rif": "J-456789123",
"countryId": "660e8400-e29b-41d4-a716-446655440001",
"createdAt": "2024-03-15T10:30:00.000Z"
}
generateSlug() utility function. This slug must be unique across all organizations.
{ rif: "..." }truenullorganizations:CREATE permission