Skip to Content
Organizations

Create a new organization

POST
/organizations

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Request Body

A JSON object containing the resource data

application/json
  1. body
name*string

The Name of the organization. Must not be greater than 255 characters.

url_slug?string

The URL Slug of the organization. Must not be greater than 30 characters.

Response Body

Created

application/json
  1. response
id*integer

The unique identifier for the organization

name*string

The name of the organization

url_slug*string

The URL Slug of the organization

resource_summary?array<>

Summary of the resource

current_user_permissions*RolePermissions

The list of permissions granted for this role

owner*|null
created_at*string

The date and time when the organization was created

updated_at*string

The date and time when the organization was last updated

Example Request
curl -X POST 'https://api.devopness.com/organizations' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json' \  -H 'Content-Type: application/json' \  -d '{  "name": "My Org"}'
Example Response
{  "id": 16523,  "name": "My Organization",  "url_slug": "MyOrganization",  "resource_summary": [    {      "resource_type": "environment",      "resource_type_plural": "environments",      "resource_type_human_readable": "Environment",      "resource_type_human_readable_plural": "Environments",      "summary": {        "count": 1      }    }  ],  "current_user_permissions": [    "application:read",    "application:create",    "server:read"  ],  "owner": {    "id": 1,    "name": "string",    "email": "user@example.com",    "url_slug": "someone",    "language": "en",    "active": true,    "created_at": "2019-09-25T15:50:48.000000Z",    "updated_at": "2019-09-25T13:52:04.000000Z"  },  "created_at": "2019-09-25T15:50:48.000000Z",  "updated_at": "2019-09-25T13:52:04.000000Z"}