Update Permissions
    • Dark
      Light
    • PDF

    Update Permissions

    • Dark
      Light
    • PDF

    Article summary

    Post
    /api/v1/permissions.update

    Update the permissions on the workspace. Permission required: access-permissions

    Changelog

    VersionDescription
    0.66.0Added
    Header parameters
    X-User-Id
    stringRequired

    The authenticated user ID.

    ExamplerbAXPnMktTFbNpwtJ
    X-Auth-Token
    stringRequired

    The authenticated user token.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    Body parameters
    Example 1
    {
      "permissions": [
        {
          "_id": "access-permissions",
          "roles": [
            "admin"
          ]
        }
      ]
    }
    Expand All
    object
    permissions
    Array of object Required

    The array of roles to overwrite.

    object
    _id
    string
    Exampleaccess-permissions
    roles
    Array of string
    string
    Exampleadmin
    Responses
    200

    OK

    Success Example
    {
      "permissions": [
        {
          "_id": "access-permissions",
          "roles": [
            "admin"
          ]
        }
      ],
      "success": true
    }
    Expand All
    object
    permissions
    Array of object
    object
    _id
    string
    roles
    Array of string
    string
    success
    boolean
    400

    Bad Request

    Example 1
    {
      "success": false,
      "error": "Invalid body params",
      "errorType": "error-invalid-body-params"
    }
    Example 2
    {
      "success": false,
      "error": "Editing permissions is not allowed",
      "errorType": "error-edit-permissions-not-allowed"
    }
    object
    success
    boolean
    error
    string
    errorType
    string
    401

    Unauthorized

    Authorization Error
    {
      "status": "error",
      "message": "You must be logged in to do this."
    }
    object
    status
    string
    message
    string

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.