API Endpoints
Fracttal →

Create user accounts

This web service can be used to create request-only user accounts.

Body parameters

ParameterTypeRequiredDescription
emailTextOptionalEmail 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_profileIntegerYesNumber of the type of user to be created, 3 should be sent by default.
enable_notificationsBooleanOptionalValue to enable Fracttal notifications, default value is true.
only_ssoBooleanOptionalValue to enable Single Sign On (SSO) authentication only, default is false
user_typeTextYesOne 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_codeTextOptionalThe code of the human resource registered in Fracttal is sent. This field is mandatory when the type_user = HUMAN_RESOURCES.
third_party_codeTextOptionalThe code of the third party registered in Fracttal is sent. This field is mandatory when type_user = THIRD_PARTIES.
name_contactTextOptionalThe 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_codeTextYesCode of the human resource who will create the account in Fracttal
location_codeTextOptionalUser account location code.

Output parameters

ParameterTypeDescription
idNumberAccount ID
nameTextUser's name
emailTextUser's email
activeBooleanUser active. Values: true or false
user_typeTextUser type:

HUMAN_RESOURCES: Human Resources THIRD_PARTIES: Third Party
enable_notificationsBooleanFractal notifications activated
only_ssoBooleanValue 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

Language