PUT Repository API (Update)

PUT Repository API (Update)

This API call allows you to update a repository item.

 Enables scenarios where items in your repository can be updated by 3rd party systems quickly and easily.

On the Cloud, this API is available via SSL-secured HTTPS connection using the REST PUT verb. The format query string parameter controls the desired response format.  Specify either XML or JSON.

/api/v2/repository?format=xml/json

You may use either JSON or XML formats in your PUT request.
You indicate this by setting the ContentType HTTP header as “application/json” or “application/xml”.

If no ContentType is specified, XML format is assumed.

All XML formatted requests must specify the following XML namespace in the data source root element: xmlns:i=”http://www.w3.org/2001/XMLSchema-instance”


Endpoints & API Explorer

NodeAPI EndpointAPI Explorer
USapi/v2/repositoryModel Description/Schema & Parameters

Parameters

The required parameters for a PUT request to the Repository API are outlined below:

NameTypeDescriptionRequired
IdGUIDThe unique identifier of the repository item to be updated.

CompanyId

Integer

Your unique Company Id found on the Company Setup page of the secure website.

Name

String

The repository item’s name.

 
DescriptionString

The repository item’s description.

 
CategoryString

The repository item’s category type (if applicable).

 
KeywordsString

The repository item’s keywords (comma-separated list).

 
VendorIdInteger

Your unique vendor account identifier.

MasterIdIntegerYour unique Enterprise Toolkit account identifier.
 
IntegrationKeyStringYour unique Integration Key found on the Company Setup page of the secure website.

Example

Given that the API is REST-based, you can access the API directly via your web browser to test or by using Postman API Platform.

Request URL

PUT https://eforms.mobileform.net:443/api/v2/repository

Response Body

{
"Id": "9cfXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"CompanyId": 6XXXX,
"Name": "Facility Inspection Checklist - TEST",
"Description": "",
"Category": "",
"Keywords": "",
"VendorId": 6XXXX,
"IntegrationKey": "995XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

Response Body

{
"RepositoryItem": {
"Id": "9cfXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"CompanyId": 6XXXX,
"ContentType": "Screen",
"ContentId": "563XXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"Name": "Facility Inspection Checklist - TEST",
"Description": "- Produce a professional facility inspection report.\r\n- Includes a comprehensive checklist, ability to generate a unique submission ID & include multiple photos as part of report.",
"Category": "RealEstate",
"Keywords": "facilities, facility management, building inspection"
}
}
    • Related Articles

    • PUT Company

      This request method lets you update existing company details through the API by specifying the company details as parameters. This API call allows you to update a repository item. Enables scenarios where items in your repository can be updated by 3rd ...
    • PUT Environment (Update)

      To update an Environment account, use a PUT with the Environment API found at our API Explorer. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST GET verb. The format query string parameter controls the desired ...
    • DELETE Repository API (Remove)

      This DELETE Repository API call allows you to remove an existing repository item from the repository. This allows you to delete specific screens from the platform as required, from various 3rd party systems, for whatever reason. On the Cloud, this ...
    • PUT Usergroup

      This API allows you to update an existing user group. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST PUT verb. The format query string parameter controls the desired response format. Specify either XML or JSON. ...
    • PUT Folder

      This API call allows you to update an existing Folder’s properties. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST PUT verb. The format query string parameter controls the desired response format. Specify either ...