Maintaining destination log

Whenever you fetch data on a case to update the website, it’s good practice to let the user/agent know that data has been updated on the site.

From the users point of view a destination status looks like this:

To add records to the destination log, shown at the buttom in the above illustration, you should use the endpoint below

Endpoint

POST https://sync.prod.realequity.dk/api/cases/{{caseId}}/destinations/{{namespace}}/logs

namespace

This is the namespace of the destination.

Information on destination namespace(s) can requested through graphQL as illustrated in graphQL basic queries (examples) :

destinations {
      namespace
      suspended
}

The example record shown above has been created by posting this payload:

{
    "status": "Success",
    "message": "Sagdata er opdateret på boligbiksen.dk"
}

When applying status, stick to one of these phrases:

  • Success
  • Error
  • NotDistributed

See the API reference Distribution for further details on what you can send in the payload. :slight_smile: