PUT Commands

<< Click to Display Table of Contents >>

Navigation:  IMS version 21.9 > IMS Admin - User Guide  > REST API >

PUT Commands

** WORK IN PROGRESS **

This section is yet to be updated to the newer version of IMS

Feature location, commands, instructions, and screen shots

may not appear the same if you are using a newer version of IMS

 

 

The PUT command is used to update an object.

 

clip0551

 

 

Click the 'TRY IT OUT' button

 

clip0567

 

 

The syntax of the command:

 

{

"id": "string",

"propertyAndValues": [

  {

    "property": "string",

    "value": "string"

  }

]

}

 

Fill in:

Entity = Site

ID = name:TESTSITEUPDATED

Property = Street

Value = Rigolettostraat

 

 

{"id": "name:TESTSITEUPDATED",

"propertyAndValues": [

{ "property": "Street",

    "value": "Rigolettostraat"

  }

]

}

 

The call that is generated:

curl -X PUT "http://your url/api/Ims/Site" -H "accept: application/json" -H "Authorization: b7712a28-8398-4367-833d-e591a66082c9" 

-H "Content-Type: application/json-patch+json" 

-d "{\"id\": \"name:TESTSITEUPDATED\", \"propertyAndValues\": [ { \"property\": \"Street\", \"value\": \"Rigolettostraat\" } ]}"

 

Note that you don’t need to fill in the Id of the entity as long as you know the Unique name, in this case:

name:TESTSITEUPDATED

The same functionality via the bulk loader looks like this:

clip0568

You notice that Entity, Name and Property are also represented.

 

Please check the helpfile in the bulkloader section for more examples.