Skip to main content

Check out Port for yourselfย 

Patch a user

PATCH 

/v1/users/:user_email

This route allows you to patch a user's details. This can be used to update the user's role/s and team/s.

To learn more about users, roles, and teams, check out the documentation.

Requestโ€‹

Path Parameters

    user_email stringrequired

    The email address of the user you want to patch.

Body

    rolesstring[]

    The roles you want to assign to the user.

    Possible values: >= 1

    teamsstring[]

    The names of the teams you want to assign the user to.

Responsesโ€‹

Updated successfully.

Schema

    okanyrequired

    Possible values: [true]

    emailstring
    firstNamestring
    lastNamestring
    picturestring
    statusstring
    idstring
    typestring
    providersstring[]
    createdAtdate-time
    updatedAtdate-time

    orgs

    object[]

  • Array [

  • idstringrequired
  • ]

  • teamsstring[]

    roles

    object[]

  • Array [

  • namestringrequired
  • ]