Skip to main content

Create Team

POST 

/teams/

Request

Body

required

    name stringrequired

    Possible values: <= 255 characters

    Name of the team.
    Maximum length is 255 characters.

    quota int64nullable

    Possible values: <= 4294967295

    Number of targets the team can create.

    reserve boolean

    If true, the account has target slots reserved for the team to ensure the fulfillment of the team's quota.
    Defaults to false.

    targets

    object[]

    Targets of the team.

  • Array [

  • id stringrequired
  • ]

  • scanning_agents

    object[]

    Scanning agents of the team.
    Learn more about How to scan internal applications with a Scanning Agent?.

  • Array [

  • id string
  • ]

Responses

Schema

    id stringrequired

    A unique Base58 value identifying this object.

    name stringrequired

    Possible values: <= 255 characters

    Name of the team.
    Maximum length is 255 characters.

    num_api_keys integerrequired

    Number of API Keys added to the team.

    num_users integerrequired

    Number of users in the team.

    num_targets integerrequired

    Number of targets added to the team.

    quota int64nullable

    Possible values: <= 4294967295

    Number of targets the team can create.

    reserve boolean

    If true, the account has target slots reserved for the team to ensure the fulfillment of the team's quota.
    Defaults to false.

    targets

    object[]

    Targets of the team.

  • Array [

  • id stringrequired
    name stringrequireddeprecated

    Possible values: <= 255 characters

    Name of the target.
    The maximum length is 255 characters.

    site

    object

    required

    Core settings of the target.
    Includes basic target information like the name and URL.

    id stringrequired

    A unique Base58 value identifying this object.

    name string

    Possible values: <= 255 characters

    Name of the target or extra host.
    The maximum length is 255 characters.

    url string

    Possible values: <= 2048 characters

    URL of the target.

    changed date-timerequired

    Date and time of the last change, in ISO 8601 UTC format.
    For example, "2023-08-09T13:27:43.8208302".

    changed_by

    object

    required

    User who last made changes.

    id stringrequired

    A unique Base58 value identifying this object.

    email email

    Possible values: <= 254 characters

    Email of the user.

    name stringrequired

    Possible values: <= 60 characters

    Name of the user.

    type stringrequired

    Type of target.
    Possible values are "single" for a web application and "api" for an API.
    Defaults to "single".

    desc stringnullablerequireddeprecated

    Description of the target.
    Defaults to "".

    labels

    object[]

    required

  • Array [

  • id stringrequired

    A unique Base58 value identifying this object.

    name stringrequired

    Possible values: <= 255 characters

    Name of the label.
    The maximum length is 255 characters.

    color string

    Possible values: Value must match regular expression ^[a-zA-Z0-9#_-]*$

    Color of the label, in RGB hexadecimal format prefixed with "#".
    For example, "#00FF00" for green.

    changed_by

    object

    required

    User who last made changes.

    id stringrequired

    A unique Base58 value identifying this object.

    email email

    Possible values: <= 254 characters

    Email of the user.

    name stringrequired

    Possible values: <= 60 characters

    Name of the user.

    changed date-timerequired

    Date and time of the last change, in ISO 8601 UTC format.
    For example, "2023-08-09T13:27:43.8208302".

  • ]

  • has_assets booleanrequired
    report_fileformat stringrequired

    Possible values: [pdf, docx]

    Report format for the target:
    (Defaults to pdf)

    • pdf - PDF file format.
    • docx - DOCX file format.

    scanning_agent

    object

    nullable

    required

    Return serializer_class with all fields as read_only except key. The key is the field use to retrieve the object in to_internal_value.

    This is for the drf-spectacular documentation generation.

    id string
    name stringrequired

    Possible values: <= 255 characters

    installer_generated booleanrequired
    online booleanrequired
    fallback booleanrequired
    rx_bytes integerrequired
    tx_bytes integerrequired
    latest_handshake integerrequired

    teams

    object[]

    required

  • Array [

  • id string

    A unique Base58 value identifying this object.

    name stringrequired
  • ]

  • blackout_period

    object

    required

    Time window during which scans are temporarily interrupted.

    begin timerequired

    Time of when the blackout period starts, in ISO 8601 UTC format.
    For example, "13:27".

    cease timerequired

    Time of when the blackout period ceases, in ISO 8601 UTC format.
    For example, "13:27".

    weekdays integer[]required
    enabled boolean

    If true, the blackout period is enabled.

    timezone string

    Possible values: <= 64 characters

    changed date-timerequired

    Date and time of the last change, in ISO 8601 UTC format.
    For example, "2023-08-09T13:27:43.8208302".

    changed_by

    object

    required

    User who last made changes.

    id stringrequired

    A unique Base58 value identifying this object.

    email email

    Possible values: <= 254 characters

    Email of the user.

    name stringrequired

    Possible values: <= 60 characters

    Name of the user.

  • ]

  • scanning_agents

    object[]

    Scanning agents of the team.
    Learn more about How to scan internal applications with a Scanning Agent?.

  • Array [

  • id string
    name stringrequired

    Possible values: <= 255 characters

    installer_generated booleanrequired
    online booleanrequired
    fallback booleanrequired
    rx_bytes integerrequired
    tx_bytes integerrequired
    latest_handshake integerrequired
  • ]

  • num_available_targets integerrequired

    Number of available targets.

Loading...