> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usereplier.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate automation changes

> Checks a create or update without saving it: the same permissions, plan, target conflicts, photos and flow rules as the real request. configuration is the body you would send to create or update. A valid result is not a reservation; saving checks again.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/workspaces/{workspace_id}/automations/validate
openapi: 3.1.0
info:
  title: Replier API
  version: '1'
servers:
  - url: https://api.usereplier.com
security:
  - apiKey: []
paths:
  /v1/workspaces/{workspace_id}/automations/validate:
    post:
      tags:
        - Automations
      summary: Validate automation changes
      description: >-
        Checks a create or update without saving it: the same permissions, plan,
        target conflicts, photos and flow rules as the real request.
        configuration is the body you would send to create or update. A valid
        result is not a reservation; saving checks again.
      operationId: validate_automation
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                operation:
                  type: string
                  enum:
                    - create
                    - update
                configuration:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
              required:
                - operation
                - configuration
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      name:
                        type: string
                      kind:
                        type: string
                        enum:
                          - personal
                          - agency
                      role:
                        type: string
                        enum:
                          - owner
                          - admin
                          - member
                    required:
                      - id
                      - name
                      - kind
                      - role
                  valid:
                    type: boolean
                  issues:
                    type: array
                    items:
                      type: object
                      properties:
                        error:
                          type: string
                        code:
                          type: string
                        detail:
                          type:
                            - string
                            - 'null'
                        conflicting_automation_id:
                          description: The automation that already holds this target.
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                        post_id:
                          description: >-
                            The post that conflicts, when the issue is about
                            one.
                          type:
                            - string
                            - 'null'
                      required:
                        - error
                required:
                  - workspace
                  - valid
                  - issues
        default:
          $ref: '#/components/responses/Error'
components:
  responses:
    Error:
      description: Refused
      content:
        application/json:
          schema:
            type: object
            required:
              - error
            properties:
              error:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                    description: >-
                      Why the request was refused, such as AUTOMATION_NOT_FOUND
                      or VERSION_CONFLICT. Other fields beside it give details.
                  message:
                    type: string
                    description: The same reason, in English.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A Replier API key (rpl_...).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.