Approve/Reject a Policy
Approve a Policy
A policy can be approved by sending a POST request to /v2/policies/{policyId}/approve
The policyId is available in the create policy response. Alternatively, see here on how to retrieve Policies.
Response
Once a policy is approved, you will receive a success response with status code 200. The status of the policy changes from "Pending" to "Approved".
If the request fails, you will receive a 4xx or 5xx error code with details in the response body. Please refer to REST API Tutorial for the full list of all HTTP status codes. The status of the policy remains "Pending".
Reject a Policy
A reviewer can reject a policy creation/update request by sending a POST request to /v2/policies/{policyId}/reject
Response
Once the policy creation/update request is rejected successfully, you will receive a success response with status code 200. The status of the policy remains "Pending".
If the request fails, you will receive a 4xx or 5xx error code with details in the response body. Please refer to this REST API Tutorial for the full list of all HTTP status codes. The status of the policy remains "Pending".
Upon a succesful rejection or approval of a policy, you will recive a response containing the string that is the policyId.
Next Step
Once a policy is approved, the status of the policy become "Live" and the status of the linked dataset changes from "Approved" to "Live". The "Live" policy is now visible to all authorized subscribers.