_setAreas

Sets the areas of a User.

Parameters

id

The ID of the User.

location_ids

An array of Area IDs to be linked to the User.

Example

FM_api('User_setAreas', [
        'id' => '123',
        'location_ids' => '["90098","90099","120071"]'
    ]
);

Result

On Success

{'ok':1}

On Failure

If the "id" parameter is missing or has an integer value less than 1:

If the "location_ids" parameter is missing or is not an array:

Last updated