Create a Credential for a Team
post
/api/v2/teams/{id}/credentials/
Make a POST request to this resource with the following credential fields to create a new credential associated with this team.
name
: Name of this credential. (string, required)description
: Optional description of this credential. (string, default=""
)-
credential_type
: Specify the type of credential you want to create. Refer to the documentation for details on each type. (id, required) -
inputs
: Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. (json, default={}
)
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : TeamCredentialSerializerCreate
Type:
Show Source
object
-
cloud:
string
Title:
Cloud
Read Only:true
-
created:
string
Title:
Created
Read Only:true
-
credential_type(required):
integer
Title:
Credential Type
Specify the type of credential you want to create. Refer to the documentation for details on each type. -
description:
string
Title:
Description
-
id:
integer
Title:
ID
Read Only:true
-
inputs:
object Inputs
Title:
Inputs
Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. -
kind:
string
Title:
Kind
Read Only:true
-
kubernetes:
string
Title:
Kubernetes
Read Only:true
-
managed:
string
Title:
Managed
Read Only:true
-
modified:
string
Title:
Modified
Read Only:true
-
name(required):
string
Title:
Name
Minimum Length:1
Maximum Length:512
- related: string
-
summary_fields:
string
Title:
Summary fields
Read Only:true
-
team:
integer
Title:
Team
Write-only field used to add team to owner role. If provided, do not give either user or organization. Only valid for creation. -
type:
string
Title:
Type
Read Only:true
-
url:
string
Title:
Url
Read Only:true
Nested Schema : Inputs
Type:
object
Title:
Inputs
Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.
Response
Supported Media Types
- application/json
201 Response
Root Schema : TeamCredentialSerializerCreate
Type:
Show Source
object
-
cloud:
string
Title:
Cloud
Read Only:true
-
created:
string
Title:
Created
Read Only:true
-
credential_type(required):
integer
Title:
Credential Type
Specify the type of credential you want to create. Refer to the documentation for details on each type. -
description:
string
Title:
Description
-
id:
integer
Title:
ID
Read Only:true
-
inputs:
object Inputs
Title:
Inputs
Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax. -
kind:
string
Title:
Kind
Read Only:true
-
kubernetes:
string
Title:
Kubernetes
Read Only:true
-
managed:
string
Title:
Managed
Read Only:true
-
modified:
string
Title:
Modified
Read Only:true
-
name(required):
string
Title:
Name
Minimum Length:1
Maximum Length:512
- related: string
-
summary_fields:
string
Title:
Summary fields
Read Only:true
-
team:
integer
Title:
Team
Write-only field used to add team to owner role. If provided, do not give either user or organization. Only valid for creation. -
type:
string
Title:
Type
Read Only:true
-
url:
string
Title:
Url
Read Only:true
Nested Schema : Inputs
Type:
object
Title:
Inputs
Enter inputs using either JSON or YAML syntax. Refer to the documentation for example syntax.