Skip to main content

Check out Port for yourselfย 

Patch a blueprint's permissions

PATCH 

/v1/blueprints/:blueprint_identifier/permissions

This route allows you to patch the permissions of a blueprint.

To learn more about permissions, check out the documentation.

Requestโ€‹

Path Parameters

    blueprint_identifier stringrequired

    Possible values: non-empty

    The identifier of the blueprint whose permissions you want to patch.

Body

    entities

    object

    register

    object

    Define who has permissions to create entities of this blueprint.

    usersstring[]

    List of users (email addresses) that are allowed to create entities of this blueprint.

    teamsstring[]

    List of teams that are allowed to create entities of this blueprint.

    rolesstring[]

    List of roles that are allowed to create entities of this blueprint.

    ownedByTeamboolean

    If true, permissions will be determined by team ownership, rather than by roles or direct assignment to users. Every user will be able to create entities belonging to their team/s.

    update

    object

    Define who has permissions to modify entities of this blueprint.

    usersstring[]

    List of users (email addresses) that are allowed to modify entities of this blueprint.

    teamsstring[]

    List of teams that are allowed to modify entities of this blueprint.

    rolesstring[]

    List of roles that are allowed to modify entities of this blueprint.

    ownedByTeamboolean

    If true, permissions will be determined by team ownership, rather than by roles or direct assignment to users. Every user will be able to modify entities belonging to their team/s.

    unregister

    object

    Define who has permissions to delete entities of this blueprint.

    usersstring[]

    List of users (email addresses) that are allowed to delete entities of this blueprint.

    teamsstring[]

    List of teams that are allowed to delete entities of this blueprint.

    rolesstring[]

    List of roles that are allowed to delete entities of this blueprint.

    ownedByTeamboolean

    If true, permissions will be determined by team ownership, rather than by roles or direct assignment to users. Every user will be able to delete entities belonging to their team/s.

    updateProperties

    object

    Define who has permissions to modify specific properties in entities of this blueprint.

    property name*

    object

    usersstring[]

    List of users (email addresses) that are allowed to modify properties in entities of this blueprint.

    teamsstring[]

    List of teams that are allowed to modify properties in entities of this blueprint.

    rolesstring[]

    List of roles that are allowed to modify properties in entities of this blueprint.

    ownedByTeamboolean

    If true, permissions will be determined by team ownership, rather than by roles or direct assignment to users. Every user will be able to modify properties in entities belonging to their team/s.

    updateRelations

    object

    Define who has permissions to modify specific relations in entities of this blueprint.

    property name*

    object

    usersstring[]

    List of users (email addresses) that are allowed to modify relations in entities of this blueprint.

    teamsstring[]

    List of teams that are allowed to modify relations in entities of this blueprint.

    rolesstring[]

    List of roles that are allowed to modify relations in entities of this blueprint.

    ownedByTeamboolean

    If true, permissions will be determined by team ownership, rather than by roles or direct assignment to users. Every user will be able to modify relations in entities belonging to their team/s.

Responsesโ€‹

Default Response