Welcome to the new Golem Cloud Docs! 👋
Project Policy

Project Policy API

Project policies describe a set of actions one account can perform when it was associated with a grant for a project.

Get a project policy

PathMethodProtected
/v1/project-policies/{project_policy_id}GETYes

Returns a given project policy by it's ID. Project policy identifiers are used in project grants.

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "projectActions": {
    "actions": [
      "ViewComponent"
    ]
  }
}

Create a project policy

PathMethodProtected
/v1/project-policiesPOSTYes

Creates a new project policy and returns the object describing it, including the newly created policy's id.

Example Request JSON

{
  "name": "string",
  "projectActions": {
    "actions": [
      "ViewComponent"
    ]
  }
}

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "projectActions": {
    "actions": [
      "ViewComponent"
    ]
  }
}

Project Policy API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"errors":["string"]}
401Unauthorized request{"error":"string"}
403Forbidden Request{"error":"string"}
404Entity not found{"error":"string"}
409{"error":"string"}
500Internal server error{"error":"string"}