Update

Update a phase

Update

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaphases.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=update
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesJob ID or UUID"phaseJobAndPhase":"1/00000105.001"
Update dataYesData to update"phaseDescription":"New description"

Example request - updating the quoted value & description (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/phases.json?&action=update&company=1&version=6&input={
  "data": [
    {
      "phaseJobAndPhase": "1/00000210.001",
      "phaseDescription": "New description"

    }
  ]
}

Example request (legacy username/password):

http://<SERVER>/jsonapi/phases.json?&action=update&company=1&version=6&input={
  "data": [
    {
      "phaseJobAndPhase": "1/00000210.001",
      "phaseDescription": "New description"

    }
  ]
}&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "synversion": "12.960.0060",
  "synapiversion": 3.95,
  "data": [
    {
      "phaseJobAndPhase": "1/00000210.001",
      "phaseuuid": "7BBD6173F013EA4087AE1302B58C43E0",
      "phaseTimeStampModified": 1697031205,
      "phaseRecordVersionNumber": 338
    }
  ]
}

To discover which fields are editable make a call to the "phase details" endpoint and specify '&style=modelstructure' see Meta-data