target

post/api/v2/owner/{owner}/project/{project_slug}/target

Path parameters

ownerstring required

The owner under which a project is categorized under. For example, a user's username.

project_slugstring required

The name of the project. Note: the project name needs to be specified as a 'slug', a URL-friendly version of the project name.

Request body

archived_atstring date-time nullable
created_atstring date-time
is_archivedboolean
is_deletedboolean
n_runsinteger
ownerstring
project_idinteger
project_slugstring
slugstring
target_idinteger
target_namestring required
type'code' | 'api'
updated_atstring date-time
urlstring nullable

Response

Creates a new target in the given project.

Returns:
    Target -- The target object that was created.
archived_atstring date-time nullable
created_atstring date-time
is_archivedboolean
is_deletedboolean
n_runsinteger
ownerstring
project_idinteger
project_slugstring
slugstring
target_idinteger
target_namestring required
type'code' | 'api'
updated_atstring date-time
urlstring nullable

Changes

Changed in 1 of the 3 revisions of this API.2

    • added the optional property archived_at to the response with the 200 status

      response-optional-property-added

    • added the optional property is_archived to the response with the 200 status

      response-optional-property-added