cURL
curl --request POST \ --url https://api.bunship.com/api/v1/organizations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "slug": "<string>", "description": "<string>", "logoUrl": "<string>" } '
{ "id": "org_cld2abc123def456", "name": "Acme Corp", "slug": "acme-corp", "description": "Building the future of widgets", "logoUrl": "https://cdn.bunship.com/logos/acme.png", "settings": {}, "createdBy": "usr_cld2abc123def456", "createdAt": "2024-01-15T10:00:00Z", "updatedAt": "2024-01-15T10:00:00Z" }
Create a new organization
^[a-z0-9]+(?:-[a-z0-9]+)*$
400
VALIDATION_ERROR
401
AUTHENTICATION_ERROR
409
CONFLICT
curl -X POST https://api.bunship.com/api/v1/organizations \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Corp", "slug": "acme-corp", "description": "Building the future of widgets" }'