Permissions

Retry the company copies of a system template

Give 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

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.

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

{"stackTrail":"paths:/api/roles/{role_id}/copies:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

Changed in 1 of the 2 revisions of this API.1