Permissions
Retry the company copies of a system template
Changed onGive the companies that missed out their copy of this template.
Idempotent: a company that already has the copy comes back as already_present and NOTHING is written to it — in particular its permission rows are left exactly as they are. "Re-adding the rows this copy is missing" is the repair ensure_company_role_copies performs across every template at once, and doing it here would silently restore permissions an operator removed on purpose.
Exists because skipped on the create is a real state with a real fix: the tenant renames the role that was in the way, and this puts the copy in.
post/api/roles/{role_id}/copies
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/roles/{role_id}/copies
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Path parameters
role_idinteger required
Query parameters
company_idinteger nullable
Uma empresa em concreto. Sem ela, tenta todas as que ainda não têm cópia.
Headers
x-api-tokenstring nullable
Response
Successful Response
unknown required
Changes
- info
endpoint added
- info