Creates an attestor, and returns a copy of the new attestor. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the attestor already exists.
HTTP request
POST https://binaryauthorization.googleapis.com/v1/{parent=projects/*}/attestors
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-30 UTC."],[[["\u003cp\u003eThis endpoint creates a new attestor within a specified project, returning a copy of the newly created attestor.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to create an attestor is a POST request to a URL that follows gRPC Transcoding syntax, with the project specified in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a parent parameter to identify the project and an attestorId parameter, with specific IAM permission (\u003ccode\u003ebinaryauthorization.attestors.create\u003c/code\u003e) required to perform this operation.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the \u003ccode\u003eAttestor\u003c/code\u003e, and the response body, upon success, will contain the newly created \u003ccode\u003eAttestor\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.attestors.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nCreates an [attestor](/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor), and returns a copy of the new [attestor](/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor). Returns `NOT_FOUND` if the project does not exist, `INVALID_ARGUMENT` if the request is malformed, `ALREADY_EXISTS` if the [attestor](/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor) already exists.\n\n### HTTP request\n\n`POST https://binaryauthorization.googleapis.com/v1/{parent=projects/*}/attestors`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Attestor](/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Attestor](/binary-authorization/docs/reference/rest/v1/projects.attestors#Attestor).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]