---     
tags: 
  - CustomPoints
description: Updates a CustomPoint
  <br/><strong>REQUIRED</strong> `custom_point_group_id` integer
  <br/><strong>OPTIONAL</strong> `reference_id` integer
  <br/><strong>REQUIRED</strong> `latitude` float
  <br/><strong>REQUIRED</strong> `longitude` float
  <br/><strong>REQUIRED</strong> `installed_at` integer
  <br/><strong>OPTIONAL</strong> `dates` array | All arrays must contain the same number of items (can be empty)
  <br/><strong>OPTIONAL</strong> `displacements` array | All arrays must contain the same number of items (can be empty)
  <br/><strong>OPTIONAL</strong> `displacement_errors` array | All arrays must contain the same number of items (can be empty)
  <br/><strong>OPTIONAL</strong> `rcs` array | All arrays must contain the same number of items (can be empty)
  <br/><strong>OPTIONAL</strong> `scr` array | All arrays must contain the same number of items (can be empty)
  <br/><strong>OPTIONAL</strong> `shape` string | 'circle' or 'square'
  <br/><strong>OPTIONAL</strong> `colour` string
parameters:
  - in: header
    name: Authorization
    type: string
    required: true
  - in: body
    name: body
    type: object
    required: true
    schema:
      example: {
        "custom_point_group_id": 1,
        "reference_id": 3,
        "latitude": 123,
        "longitude": 456,
        "installed_at": 20220104,
        "dates": [20220101],
        "displacements": [1],
        "displacement_errors": [1],
        "rcs": [1],
        "scr": [1],
        "shape": "circle",
        "colour": "#FF0000"
    }
produces: 
  - 'application/json'
responses:
  200:
    schema:
      properties:
        id:
          type: integer
          example: 1
        message:
          type: string
          example: Custom Point 1 updated
  400:
    schema:
      type: object
      properties:
        error:
          type: string
          example: 'Name must exist'
  401:
    schema:
      type: object
      properties:
        error:
          type: string
          example: 'User not authorised'

