Edit Repository Item Information

Edit the information of an item in the Perfecto repository.

URL

Copy
https://<your-cloud>.app.perfectomobile.com/repository/api/v1/artifacts/

Method

PUT

Header parameters

Name

Description

Perfecto-Authorization

Security Token

Data parameters (body)

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: /\:"*?<>|”

artifactName

Optional. Used for the representation of the artifact when downloaded. The default value is artifactKey.

The artifactName cannot contain any of the following characters: /\:"*?<>|”

tags Optional. The list of tags associated with the artifact.
Copy
{
    "artifactLocator":"",  (Identifies artifact to change)
    "artifactName": "" 
    "tags": []
}

Success response

Code: 200

Error response

Error code Reason

400 NOT FOUND

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