Modify Project Costs
Modifies the cost of a project specified by id.
The id of the project.
The version of the API in yyyy-MM-dd format. For versioning information refer to /project-service/api/about.
Project cost
{
"cost": "number",
"costSyncTime": "2011-12-03T10:15:30Z",
"costUnit": "USD",
"message": "string",
"code": "string"
}
The cost of project.
The date as of which project cost is calculated. Timestamp format: YYYY-MM-DDThh:mm:ss.SSSZ
The unit of cost of project. This is a 3 letter currency code.
The message regarding the project cost.
The unique code for the message.
'Success' with the Project
{
"id": "string",
"name": "my-name",
"description": "my-description",
"orgId": "string",
"administrators": [
{
"email": "[email protected]",
"type": "user"
}
],
"members": [
{
"email": "[email protected]",
"type": "user"
}
],
"viewers": [
{
"email": "[email protected]",
"type": "user"
}
],
"supervisors": [
{
"email": "[email protected]",
"type": "user"
}
],
"users": [
{
"email": "[email protected]",
"type": "user"
}
],
"auditors": [
{
"email": "[email protected]",
"type": "user"
}
],
"advancedUsers": [
{
"email": "[email protected]",
"type": "user"
}
],
"constraints": {
"network": {
"conditions": [
{
"type": "TAG",
"enforcement": "HARD",
"occurrence": "MUST_OCCUR",
"expression": {
"key": "key",
"value": "value"
}
}
]
}
},
"properties": {
"myproperty": "enforcement",
"__projectPlacementPolicy": "SPREAD",
"__namingTemplate": "my-resource-template",
"__allowTerraformCloudzoneMapping": "true"
},
"cost": {
"cost": "number",
"costSyncTime": "2011-12-03T10:15:30Z",
"costUnit": "USD",
"message": "string",
"code": "string"
},
"operationTimeout": 0,
"sharedResources": false
}
Forbidden, the user lacks permissions
'Not found' if no project with the provided id
curl -X PATCH -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}'