...
Code Block |
---|
{
"requestType":"addOrganizationPolicy",
"orgToken":"organization_api_key",
"userKey": "user_key",
"policy":{
"name":"my policy",
"owner":{
"id":user_id
},
"filter":{
"type":"LICENSE",
"licenses":[
{
"name":"Apache 2.0"
}
]
},
"inclusive": true,
"action":{
"type":"APPROVE"
}
}
} |
...
Code Block |
---|
{
"requestType": "addProductPolicy",
"productToken": "product_token",
"userKey": "user_key",
"policy":{
"name":"my policy",
"owner":{
"id":user_id
},
"filter":{
"type":"LICENSE",
"licenses":[
{
"name":"GPL 3"
}
]
},
"inclusive": true,
"action":{
"type":"APPROVE"
}
} |
...
Code Block |
---|
{
"requestType":"addProjectPolicy",
"projectToken":"project_token",
"userKey": "user_key",
"policy":{
"name":"my policy",
"owner":{
"id":user_id
},
"filter":{
"type":"LICENSE",
"licenses":[
{
"name":"GPL 3"
}
]
},
"inclusive": true,
"action":{
"type":"APPROVE"
}
}
} |
...
Code Block |
---|
{
"requestType":"updateOrganizationPolicy",
"orgToken":"organization_api_key",
"userKey": "user_key",
"policy":{
"id":1
"name":"my policy",
"owner":{
"id":user_id
},
"filter":{
"type":"LICENSE",
"licenses":[
{
"name":"GPL 3.0"
}]
},
"inclusive": true,
"action":{
"type":"REJECT"
}
}
} |
...
Code Block |
---|
{
"requestType":"updateProductPolicy",
"productToken": "product_token",
"userKey": "user_key",
"policy":{
"name":"my policy",
"owner":{
"id":user_id
},
"filter":{
"type":"LICENSE",
"licenses":[
{
"name":"GPL 3.0"
}]
},
"inclusive": true,
"action":{
"type":"REJECT"
}
}
} |
...
|
...
|
...
|
Response Example
...