post https://app.fracttal.com/api/accounts
This web service can be used to create request-only user accounts.
Body parameters
Parameter | Type | Required | Description |
---|---|---|---|
email | Text | Optional | Email with which the user will register. In case this parameter is not sent, the email with which the user was registered within Fracttal as a human resource or as a third party contact will be established. |
id_profile | Integer | Yes | Number of the type of user to be created, 3 should be sent by default. |
enable_notifications | Boolean | Optional | Value to enable Fracttal notifications, default value is true. |
only_sso | Boolean | Optional | Value to enable Single Sign On (SSO) authentication only, default is false |
user_type | Text | Yes | One of the following values must be sent: HUMAN_RESOURCES (to associate the account to a human resource) THIRD_PARTIES (To associate the account to a third party or supplier) |
personnel_code | Text | Optional | The code of the human resource registered in Fracttal is sent. This field is mandatory when the type_user = HUMAN_RESOURCES. |
third_party_code | Text | Optional | The code of the third party registered in Fracttal is sent. This field is mandatory when type_user = THIRD_PARTIES. |
name_contact | Text | Optional | The name of the contact created in Fracttal that is associated to the previously entered third party is sent. This field is mandatory when type_user = THIRD_PARTIES. |
user_code | Text | Yes | Code of the human resource who will create the account in Fracttal |
location_code | Text | Optional | User account location code. |
Output parameters
Parameter | Type | Description |
---|---|---|
id | Number | Account ID |
name | Text | User's name |
email | Text | User's email |
active | Boolean | User active. Values: true or false |
user_type | Text | User type: HUMAN_RESOURCES: Human Resources THIRD_PARTIES: Third Party |
enable_notifications | Boolean | Fractal notifications activated |
only_sso | Boolean | Value indicating whether you have Single Sign On (SSO) authentication only, |
Example:
Request: (POST) https://app.fracttal.com/api/accounts/
{
"email": "[email protected]",
"id_profile": 3,
"enable_notifications": true,
"only_sso": false,
"user_type": "HUMAN_RESOURCES",
"personnel_code": "456123489",
"user_code": "25198772-2",
}
{
"success": true,
"message": "200",
"data": {
"id": 72,
"id_company": 69,
"email": "[email protected]",
"name":"Usuario solo solicitudes",
"active": true,
"enable_notifications": true,
"only_sso": false
},
"total": 1
}
Test It