Create

Create

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API arealookups.json
ActionYesThe action to performaction=create
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
JSON InputMandatoryDescriptionExamples
lookupsLookupValueYesLookup value"lookupsLookupValue":"New Dept"
lookupsLookupsPropertiesUuidYesLookup properties UUID"lookupsLookupsPropertiesUuid":"A43DBA3799844D7D9E7B219530D68815"

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/lookups.json?action=create&&input={"data":[{"lookupsLookupValue":"New Dept","lookupsLookupsPropertiesUuid":"A43DBA3799844D7D9E7B219530D68815"}]}&version=6

Example request (legacy username/password):

http://<SERVER>/jsonapi/lookups.json?action=create&&input={"data":[{"lookupsLookupValue":"New Dept","lookupsLookupsPropertiesUuid":"A43DBA3799844D7D9E7B219530D68815"}]}&version=6&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "synapiversion": 3.9,
  "data": [
    {
      "lookupsUuid": "30ECA39A4C9493488B3E022BAB3BFF35",
      "lookupsTimestampModified": 1648637819,
      "lookupsRecordVersionNumber": 0
    }
  ]
}