Route:
PATCH /plans/v1/rs/{planId}API Type:api-rs
Updates an existing plan with new data including name, document, and site associations using partial update functionality.
MANAGER[ADMIN, USER]updateplanThe request will fail if:
For the rights of this endpoint, the request is filtered by establishments that are accessible to the user. Users can only update plans from their authorized establishments through building relationships. Requires x-session-token header.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Session token used for authenticating the request.
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"
Content type, must be "application/json".
"application/json"Unique identifier of the plan.
-9007199254740991 <= x <= 90071992547409911
Details required to update an plan
Name of the plan.
255"Main Plan"
Unique identifier of the document.
-9007199254740991 <= x <= 90071992547409911
Unique identifier of the site.
-9007199254740991 <= x <= 90071992547409911
The plan was successfully updated