# ing.opn.booking.putLocationValues

> Sets the private values of an event type's locations, which its record leaves out: a fixed meeting link for a video call, or the host's number for a call they make. Replaces the values kept before. Only the event type's owner can call it, after writing and syncing the record.

- Kind: procedure
- Authority: booking.opn.ing
- Lexicon: 1
- Published by [opn.ing](https://lexicon.garden/identity/did:plc:fd7yovynbzbli5i7m6tu76cl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.putLocationValues)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.putLocationValues/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fd7yovynbzbli5i7m6tu76cl/ing.opn.booking.putLocationValues/analytics)

## Procedure (`ing.opn.booking.putLocationValues`)

Type: procedure · POST

### Input (application/json)

- `eventType` (string · at-uri, required)
- `values` (array, required)
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `#value`

### Output (application/json)

- `count` (integer, required): How many values are kept.
  - Constraints: minimum: 0

### Errors

- `EventTypeNotFound`: No description in schema.
- `InvalidLocation`: No description in schema.
- `NotOwner`: No description in schema.

## #value (`ing.opn.booking.putLocationValues#value`)

Type: object

### Properties

- `location` (integer, required): The location's position in the record's locations.
  - Constraints: minimum: 0
- `value` (string, required)
  - Constraints: maxLength: 2048

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Sets the private values of an event type's locations, which its record leaves out: a fixed meeting link for a video call, or the host's number for a call they make. Replaces the values kept before. Only the event type's owner can call it, after writing and syncing the record.",
      "errors": [
        {
          "name": "EventTypeNotFound"
        },
        {
          "name": "InvalidLocation"
        },
        {
          "name": "NotOwner"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "eventType": {
              "format": "at-uri",
              "type": "string"
            },
            "values": {
              "items": {
                "ref": "#value",
                "type": "ref"
              },
              "maxLength": 10,
              "type": "array"
            }
          },
          "required": [
            "eventType",
            "values"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "description": "How many values are kept.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    },
    "value": {
      "properties": {
        "location": {
          "description": "The location's position in the record's locations.",
          "minimum": 0,
          "type": "integer"
        },
        "value": {
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "location",
        "value"
      ],
      "type": "object"
    }
  },
  "id": "ing.opn.booking.putLocationValues",
  "lexicon": 1
}
```
