Skip to Content
Projects

Create a project for the authenticated user

Deprecated

POST
/projects

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Created

application/json
  1. response
id*integer

The Id of the project

user_id*integer

The id of the user that own the project

name*string

The project's name

logo_url*|

A URL path to the project's logo image

resource_summary?array<>

Summary of the resource

os_users*array<>

The list of the operating system users found in all the servers linked to a project

organization*|null
current_user_permissions*RolePermissions

The list of permissions granted for this role

created_by_user*|null
created_at*string

The date and time when the record was created

updated_at*string

The date and time when the record was last updated

Example Request
curl -X POST 'https://api.devopness.com/projects' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
{  "id": 45678,  "user_id": 984123,  "name": "my project",  "logo_url": "https://example.com/projects-beautiful-logo.png",  "resource_summary": [    {      "resource_type": "environment",      "resource_type_plural": "environments",      "resource_type_human_readable": "Environment",      "resource_type_human_readable_plural": "Environments",      "summary": {        "count": 1      }    }  ],  "os_users": [    {      "name": "devopness"    }  ],  "organization": {    "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        }      }    ],    "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"  },  "current_user_permissions": [    "application:read",    "application:create",    "server:read"  ],  "created_by_user": {    "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": "2022-09-26T15:30:31.000000Z",  "updated_at": "2022-09-26T15:30:58.000000Z"}