Create project credential
POST
/api/v1/projects/{projectId}/credentials
const url = 'https://localhost:10001/api/v1/projects/1/credentials';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"createdAt":"example","createdBy":"example","credentials":{},"description":"example","id":1,"isActive":true,"lastUsedAt":"example","metadata":{},"name":"example","projectId":1,"provider":"example","type":"AWS_STATIC","updatedAt":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:10001/api/v1/projects/1/credentials \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "createdAt": "example", "createdBy": "example", "credentials": {}, "description": "example", "id": 1, "isActive": true, "lastUsedAt": "example", "metadata": {}, "name": "example", "projectId": 1, "provider": "example", "type": "AWS_STATIC", "updatedAt": "example" }'Create a new credential for the given project
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
integer
Project ID
Request Body
Section titled “Request Body ”Credential
Media type application/json
object
createdAt
string
createdBy
string
credentials
object
description
string
id
integer
isActive
boolean
lastUsedAt
string
metadata
object
name
string
projectId
integer
provider
string
type
string
updatedAt
string
Responses
Section titled “ Responses ”Created credential
Media type application/json
object
createdAt
string
createdBy
string
credentials
object
description
string
id
integer
isActive
boolean
lastUsedAt
string
metadata
object
name
string
projectId
integer
provider
string
type
string
updatedAt
string
Example
{ "type": "AWS_STATIC"}Bad request - Invalid project ID or request body
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Internal server error
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}