Edit details of a customer site

Update an existing site on a customer in your account.

Request

Endpoint: /api/sipt/sites/{site_id}
Example: /api/sipt/sites/86
Method: PUT
Headers: Accept: application/vnd.cloudlx.v1+json
Authorization: Bearer <access_token>

Example Request:

                                
    {
        "customer_id": 165,
        "site_name": "Edited Customer Site",
        "address_1": "10a Customer House",
        "address_2": "Customer Street",
        "city": "New York",
        "state": "NY",
        "postcode": "10036",
        "country_iso": "US",
        "main_contact_first_name": "David",
        "main_contact_last_name": "Baker",
        "main_contact_job_title": "Sales Executive",
        "main_contact_email": "m.contact@company.com",
        "main_contact_phone": "07924589754",
        "technical_contact_first_name": "Jane",
        "technical_contact_last_name": "Smith",
        "technical_contact_job_title": "Technical Officer",
        "technical_contact_email": "t.contact@company.com",
        "technical_contact_phone": "07924589755",
        "emergency_contact_first_name": "John",
        "emergency_contact_last_name": "Doe",
        "emergency_contact_job_title": "Site Manager",
        "emergency_contact_email": "e.contact@company.com",
        "emergency_contact_phone": "07924589756",
        "equipment_details": "Some details about the equipment installed here"
    }
                                
                            

Request Values - Required

customer_id Description The id of the customer that this site is being added to
Type Number
Example 165
site_name Description The name of the new site
Type String
Example Edited Customer Site
address_1 Description First line of the site address
Type String
Example 10a Customer House
cite Description The site town or city
Type String
Example New York
postcode Description The site postal code
Type String
Example 10036
country_iso Description The ISO code of the country the site resides in
Type Number
Example US
main_contact_first_name Description The first name of the site main contact
Type String
Example David
main_contact_last_name Description The last name of the site main contact
Type String
Example Baker
main_contact_job_title Description The job title of the site main contact
Type String
Example Sales Executive
main_contact_email Description The email address of the site main contact
Type String
Example m.contact@company.com
main_contact_phone Description The phone number of the site main contact
Type String
Example 07924589754

Request Values - Optional

address_2 Description Second line of the site address
Type String
Example Customer Street
state Description The site state or county
Type String
Example NY
technical_contact_first_name Description The first name of the site technical contact
Type String
Example Jane
technical_contact_last_name Description The last name of the site technical contact
Type String
Example Smith
technical_contact_job_title Description The job title of the site technical contact
Type String
Example Technical Officer
technical_contact_email Description The email address of the site technical contact
Type String
Example t.contact@company.com
technical_contact_phone Description The phone number of the site technical contact
Type String
Example 07924589755
emergency_contact_first_name Description The first name of the site emergency contact
Type String
Example John
emergency_contact_last_name Description The last name of the site emergency contact
Type String
Example Doe
emergency_contact_job_title Description The job title of the site emergency contact
Type String
Example Site Manager
emergency_contact_email Description The email address of the site emergency contact
Type String
Example e.contact@company.com
emergency_contact_phone Description The phone number of the site emergency contact
Type String
Example 07924589756
equipment_details Description The details of the equipment supplied to the site
Type String
Example Some details about the equipment installed here

Response

Example:

                                
    {
        "success": true,
        "site_id": 86,
        "message": "The customer site was updated successfully"
    }