跳到主要内容

Get execution case attachments

GET 

/project/executionCases/:executionCaseID/attachments

Get attachment metadata and temporary download URLs for an execution case.

The attachment resource does not contain field or step ownership. For a step actual result, use actualResult.attachmentIDs in the execution case detail response to identify the attachments referenced by that rich text.

The time range is inclusive and cannot exceed one year. With no time bounds, the last year is used. With only one bound, the other is derived one year away. Results are ordered by creation time descending, then ID descending. Use data.pageInfo.endCursor as the next cursor while hasNextPage is true.

Request​

Path Parameters

    executionCaseID stringrequired

    The id of the execution case.

Query Parameters

    teamID stringrequired

    The team ID

    fileCreatedTimeSince integer

    The start of attachment created time. Unix timestamp; seconds, milliseconds, and microseconds are accepted.

    fileCreatedTimeMax integer

    The end of attachment created time. Unix timestamp; seconds, milliseconds, and microseconds are accepted.

    limit integer

    Possible values: <= 100

    Default value: 50

    The number returned by this request.The default value is 50, exceeding 100 will be truncated to 100

    cursor string

    The starting location of this request

Responses​

Request is successful.

Schema

    data

    object

    list

    object[]

  • Array [

  • id string

    The file id.

    name string

    The file name.

    createTime integer

    The time when the file was uploaded.

    creator

    object

    id string
    name string
    hash string
    mime string
    sizeByte integer
    description string
    tempURL string

    The temporary download URL.

  • ]

  • pageInfo

    object

    Page information.

    count integer

    The number returned this time.

    endCursor string

    The last cursor on this page is generally used to turn pages.

    hasNextPage boolean

    Is there a next page.

    startCursor string

    The first cursor on this page is generally used to turn pages.

    totalCount integer

    The total number of items available in the entire collection, including those that are returned in the current response.

    result string

    The result of this request.

    errorCode string

    The error code of this request.

    errorMsg string

    Error message for this request.

    errorData object

    Error meta data for this request.

Loading...