Create Project In Organization V2 Using POST

Create Project In Organization V2 Using POST

Create organization's project V2

Access Policy

Role User Accounts Service Accounts (Client Credentials Applications)
Organization Admin ✔️ ✔️
Organization Owner ✔️ ✔️
Project Admin ✔️ ✔️
Request
URI
POST
https://{api_host}/csp/gateway/resource/api/v2/orgs/{orgId}/projects
COPY
Path Parameters
string
orgId
Required

Parent organization ID for the project


Request Body

Configuration for the project

CreateProjectRequest of type(s) application/json
Required

Show optional properties

{
    "displayName": "string"
}
{
    "description": "string",
    "displayName": "string",
    "parentProjectId": "string",
    "subResourceServiceScopes": [
        "string"
    ],
    "type": "string",
    "vrn": "string"
}
string
description
Optional
Constraints: minLength: 0 maxLength: 255

Description of the project

string
displayName
Required
Constraints: minLength: 0 maxLength: 255

Name of the project

string
parentProjectId
Optional

Parent project of this project

array of string
subResourceServiceScopes
Optional

List of serviceDefinitionIds of allowed services for this project's children (Default is all)

string
type
Optional

Type of project (Default is CUSTOM)

Possible values are : CUSTOM, SYSTEM, ORG_DEFAULT,
string
vrn
Optional

vrn

Authentication
This operation uses the following authentication methods.
Responses
201

Successful operation

Returns IdRefLinkDto of type(s) application/json
"IdRefLinkDto Object"
string
id
Required

id

string
refLink
Required

refLink


400

Invalid request body

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
cspErrorCode
Optional

cspErrorCode

string
errorCode
Optional

errorCode

string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
requestId
Optional

requestId

integer As int32 As int32
statusCode
Optional

statusCode


401

Unauthorized

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
cspErrorCode
Optional

cspErrorCode

string
errorCode
Optional

errorCode

string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
requestId
Optional

requestId

integer As int32 As int32
statusCode
Optional

statusCode


404

The requested resource could not be found

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
cspErrorCode
Optional

cspErrorCode

string
errorCode
Optional

errorCode

string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
requestId
Optional

requestId

integer As int32 As int32
statusCode
Optional

statusCode


409

Conflict

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
cspErrorCode
Optional

cspErrorCode

string
errorCode
Optional

errorCode

string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
requestId
Optional

requestId

integer As int32 As int32
statusCode
Optional

statusCode


429

The user has sent too many requests

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
cspErrorCode
Optional

cspErrorCode

string
errorCode
Optional

errorCode

string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
requestId
Optional

requestId

integer As int32 As int32
statusCode
Optional

statusCode


500

Internal Server Error

Returns CspErrorResponse of type(s) application/json
"CspErrorResponse Object"
string
cspErrorCode
Optional

cspErrorCode

string
errorCode
Optional

errorCode

string
message
Optional

message

integer As int32 As int32
moduleCode
Optional

moduleCode

string
requestId
Optional

requestId

integer As int32 As int32
statusCode
Optional

statusCode


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"displayName:"string"}' https://{api_host}/csp/gateway/resource/api/v2/orgs/{orgId}/projects