Users

Update user ACL

Auth: User JWT

update acl for appId and userId respectively

put/v1/users/acl/{appId}/{userId}

Request

  • Base URL: https://api.chat.ethora.com
  • URL: https://api.chat.ethora.com/v1/users/acl/{appId}/{userId}
  • Auth: HTTP bearer

Path parameters

appIdstring required

Target App ID. Must be an app the calling actor owns or has been delegated access to.

userIdstring required

Target User ID, scoped to the appId in the same path.

Request body

Response

  {
    result: {
      {
        network: {
          netStats: {
            read: boolean,
            disabled: ['create', 'update', 'delete', 'admin']
          }
        },
        application: {
          appCreate: {
            craete: boolean,
            disabled: ['read', 'update', 'delete', 'admin']
          },
          appSettings: {
            read: boolean,
            update: boolean,
            admin: boolean,
            disabled: ['create', 'delete']
          },
          appUsers: {
            create: boolean,
            read: boolean,
            update: boolean,
            delete: boolean,
            admin: boolean
          },
          appTokens: {
            create: boolean,
            read: boolean,
            update: boolean,
            admin: boolean,
            disabled: ['delete']
          },
          appPush: {
            create: boolean,
            read: boolean,
            update: boolean,
            admin: boolean,
            disabled: ['delete']
          },
          appStats: {
            read: boolean,
            admin: boolean,
            disabled: ['create', 'update', 'delete']
          }
        }
      },
      _id: string,
      userId: string,
      appId: string,
      createdAt: string,
      updatedAt: string
    }
  }

Changes

No recorded changes to this operation across all 1 revision of this API.