Autenticación Hardware Companies Documents Entities Fiscal Founds Products Shared Users

users resource

GET http://api.multinexo.com/v1/company/{company_id}/users

Attributes

email
create, read, update
first_name
create, read, update
last_name
create, read, update
avatar_url
create, read, update
actual_status 'only get'
create, read, update invited | accepted | rejected
send_invitation 'only update'
create, read, update true | false
updated_at
read datetimew3c
deleted_at
read datetimew3c
activated
create, read, update

Relationships

additional_accounts
has many
roles
has many
entities
has one

Filters

first_name
like no acepta varios valores
trashed
equals no acepta varios valores

JSON Resource Example

  {
    data: {
      type: users,
      id: 916,
      attributes: {
        email: someValue,
        first_name: someValue,
        last_name: someValue,
        avatar_url: someValue,
        actual_status 'only get': someValue,
        send_invitation 'only update': someValue,
        updated_at: 2018-08-28T16:31:47+00:00,
        deleted_at: 2018-08-28T16:31:47+00:00,
        activated: someValue
        },
      relationships: { 
        additional_accounts:{
          id: 643,
          type: additional_accounts
        },
      
        roles:{
          id: 502,
          type: roles
        },
      
        entities:{
          id: 389,
          type: entities
        }
      }
    }
  }

JSON-API Entry points

PATCH GET http://api.multinexo.com/v1/company/{company_id}/users/{users_id}

POST http://api.multinexo.com/v1/company/{company_id}/users/

Special JSON-API entry points

mailAssignSave POST […]/v1/users/invitation_request

Para enviar un email de invitacion a un nuevo usuario. mailAssign POST […]/v1/companies/{company_id}/invitations

Comprueba el hash enviado al mail este correcto y lo redirecciona a un apartado de frontend mailAssignRedirect GET […]/v1/users/invitations/{code}