Skip to main content
Version: v0.6

Create a subject.

Create a subject.

Create a subject.

Request Body required
    builtin boolean
    description string
    domain string
    kind string
    name string required
    password string required
    roles object[]
  • Array [
  • role object required
    id string required
    subject object required
    domain string
    id string
    kind string
    name string
  • ]
Responses

Created


Schema
    builtin boolean
    createTime date-time
    description string
    domain string
    id string
    kind string
    name string
    roles object[]
  • Array [
  • createTime date-time
    id string
    project object
    createTime date-time
    description string
    id string
    labels object
    property name* string
    name string
    updateTime date-time
    role object
    applicableEnvironmentTypes string[]
    builtin boolean
    createTime date-time
    description string
    id string
    kind string
    policies object[]
  • Array [
  • actions string[]
    paths string[]
    resourceRefers string[]
    resources string[]
  • ]
  • updateTime date-time
    subject object
    builtin boolean
    createTime date-time
    description string
    domain string
    id string
    kind string
    name string
    roles object[]
  • Array [
  • createTime date-time
    id string
    project object
    createTime date-time
    description string
    id string
    labels object
    property name* string
    name string
    updateTime date-time
    role object
    applicableEnvironmentTypes string[]
    builtin boolean
    createTime date-time
    description string
    id string
    kind string
    policies object[]
  • Array [
  • actions string[]
    paths string[]
    resourceRefers string[]
    resources string[]
  • ]
  • updateTime date-time
    subject
  • ]
  • updateTime date-time
  • ]
  • updateTime date-time
POST /v1/subjects

Authorization

name: BasicAuthtype: httpdescription: Basic Authentication, in form of base64(<username>:<password>), the password must be a valid Seal API token.in: headerscheme: basic

Request

Security Scheme
Username
Password
Body required
{
"builtin": true,
"description": "string",
"domain": "string",
"kind": "string",
"name": "string",
"password": "string",
"roles": [
{
"role": {
"id": "string"
},
"subject": {
"domain": "string",
"id": "string",
"kind": "string",
"name": "string"
}
}
]
}
curl / cURL
curl -L -X POST 'https://seal-io.github.io/v1/subjects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"builtin": true,
"description": "string",
"domain": "string",
"kind": "string",
"name": "string",
"password": "string",
"roles": [
{
"role": {
"id": "string"
},
"subject": {
"domain": "string",
"id": "string",
"kind": "string",
"name": "string"
}
}
]
}'