Skip to content

Create a new software license policy in a project

POST
/api/v4/projects/{id}/managed_licenses
id
required
One of:
string

The ID or URL-encoded path of the project

Media type application/json
object
name
required

The name of the license

string
nullable
Example
MIT
approval_status
required

The approval status of the license.

string
>= 1 characters
Allowed values: allowed denied

Created

Media type application/json
object
id
integer format: int64
name
string
approval_status
string
Example generated
{
"id": 1,
"name": "example",
"approval_status": "example"
}

Bad Request

Unauthorized

Forbidden

Not found