Entries/Places

Update clearance of places

Changed on

Update the clearance of multiple places on behalf of the requesting organization.

Returns the number of created/updated clearance records.

If the given revision matches the current revision of that place then any pending clearance is deleted. Otherwise clearance will remain pending with the given revision stored as the new last cleared revision, i.e. any pending clearance is replaced.

Requests must include the API token of the organization.

post/places/clearance

Request

  • Base URL
    https://api.ofdb.io/v0
  • URL
    https://api.ofdb.io/v0/places/clearance
  • Auth
    none declared

Request body

place_idstring required

Identifier of a resource

cleared_revisioninteger

A revision number

Example request

[
  {
    "place_id": "7cee99c287094a94acbdcf29ffff2e85",
    "cleared_revision": 23
  }
]

Response

Successful response

countinteger required

Changes

    • breaking

      the / request property format changed from i64 to int64

    • breaking

      the / request property format changed from int64 to i64

    • breaking

      the response's property type changed from integer to number, and format from int64 to i64 for status