Activate cooperation

Allows to acti­vate pre­vi­ous­ly blocked coop­er­a­tion. Option avail­able only for users with admin­is­tra­tor role.

Url parameters and connection settings

  • URL: https://api.platform.trans.eu
  • End­point: /ext/partners-api/v1/partners/:partnerId/active
  • Method: POST

Headers

  • Con­tent-type: application/json
  • Accept: application/json
  • Autho­riza­tion: Bear­er {access_token}
  • Api-key: {unique_ap­p_api-key}

Authorization and access

Autho­riza­tion process is described here.  Each API request must also con­sist of unique Api-key obtained dur­ing appli­ca­tion reg­is­tra­tion togeth­er with client_id and client_secret.

Example request

POST https://api.platform.trans.eu/partners-api/v1/partners/bbaaf152-3a27-4c6b-9cc9-17aa8c47e16e/active

Status codes

  • 200 OK — with emp­ty table — coop­er­a­tion active
  • 400 — Bad request — Invalid UUID for­mat — invalid part­ner­Id
  • 422 — Unprocess­able Enti­ty — some val­i­da­tion rules have not been met — body should be left emp­ty