Get Repository Item Information

Get information on a specific item in the Perfecto repository.

URL

Copy
https://<your-cloud>.app.perfectomobile.com/repository/api/v1/artifacts/artifact/info?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

Copy
{
   "artifactsDetails:":
      {
            "artifactLocator": "PUBLIC:file_contexts.apk",
            "username": "",
                "groupKey": ""
            "artifactMetadata": {
                "artifactName": "file_contexts.apk",
                "artifactSize": 100973,
                                "mimeType": ""
                                "artifactType": "ANDROID",
                 "information": [
                     {
                         "name": "version",
                         "value": "1.0.0"
                     }
                 ],
                                "tags": []
            },
            "usageMetadata": {
                "creationTime": 1596574465567,
                "lastUpdateTime": 1596574465567,
                "lastDownloadTime": 1597771764479
            }
        }
}

Error response

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