Download Item from Repository

Downloads an item from the Perfecto repository.

URL

Copy
https://<your-cloud>.app.perfectomobile.com/repository/api/v1/artifacts/artifact?artifactLocator={artifactLocator}

Method

GET

Header parameters

Name

Description

Perfecto-Authorization

Security Token

Request parameters

Parameter Description
artifactLocator

Unique artifact identifier.

Format:
{folderType}:{artifactKey}

where:

  • folderType: Defines privileges of accessibility. Possible values:

    • PRIVATE: Only the owner has access to the artifact.

    • GROUP: Only users related to the owner’s group will have access to the artifact.

    • PUBLIC: All users have access to the artifact.

  • artifactKey: Unique identifier of the artifact

    The artifactKey cannot contain backslash (\) characters. If no artifactName is provided, artifactKey cannot contain any of the following characters: /\:"*?<>|”

Success response

Code: 200

Content: Artifact item content

Error response

Error code Reason
400 NOT FOUND Item does not exist
401 UNAUTHORIZED Wrong security token
500 INTERNAL_SERVER_ERROR Internal error