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

# Update activity

> POST rather than PATCH because it can carry an image file part. Partial: a field you do not send keeps its value. location moves the activity to another location of the same day; moving it to another day is 422.



## OpenAPI

````yaml /openapi.json post /{company}/event/{organizingEvent}/schedule/activities/{activity}
openapi: 3.1.0
info:
  title: Animo API
  version: 1.1.0
  description: >-
    Animo events platform API. Orchestrate setup and operations — never rebuild
    payments, VAT, invoicing, or form submission ingest. Read
    https://docs.animo.co/for-ai-agents before integrating.
  contact:
    name: Animo support
    email: support@animo.co
    url: https://docs.animo.co
servers:
  - url: https://app.animo.co/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: User
    description: Authenticated user
  - name: Companies
    description: Company context
  - name: Events
    description: Event management
  - name: Ticket types
    description: Ticket types for organizing events
  - name: Discounts
    description: Discounts and the promo codes that hand them out
  - name: Schedule
    description: 'The event agenda: days, locations and activities'
  - name: Speakers
    description: Company-level speakers, billed on activities
  - name: Orders
    description: Registrations and orders
  - name: Forms
    description: Form definitions
  - name: Activations
    description: Lead-generation activations
  - name: Webhooks
    description: Outbound webhooks (Pro)
paths:
  /{company}/event/{organizingEvent}/schedule/activities/{activity}:
    post:
      tags:
        - Schedule
      summary: Update activity
      description: >-
        POST rather than PATCH because it can carry an image file part. Partial:
        a field you do not send keeps its value. location moves the activity to
        another location of the same day; moving it to another day is 422.
      operationId: updateActivity
      parameters:
        - name: company
          in: path
          required: true
          schema:
            type: string
          description: Company sqid
        - name: organizingEvent
          in: path
          required: true
          schema:
            type: string
          description: Event slug. The event must be one the company organizes
        - name: activity
          in: path
          required: true
          schema:
            type: string
          description: Activity sqid from GET /schedule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                title:
                  type: string
                  maxLength: 255
                subtitle:
                  type: string
                  maxLength: 255
                  nullable: true
                description:
                  type: string
                  maxLength: 2048
                  nullable: true
                starts_at:
                  type: string
                  description: HH:mm wall clock in the event timezone, never a UTC offset
                duration:
                  type: integer
                  minimum: 1
                  maximum: 1440
                  description: Minutes. A multipart request may send it as a string
                type:
                  type: string
                  enum:
                    - generic
                    - break
                  default: generic
                image:
                  type: string
                  format: binary
                  nullable: true
                  description: >-
                    jpg, jpeg, png, webp, apng or avif, at most 1 MB. Requires
                    multipart/form-data. Null removes the stored image
                speakers:
                  type: array
                  items:
                    type: string
                  description: >-
                    Speaker sqids. Replaces the whole list billed on the
                    activity; [] removes them all, omitting the key leaves them
                    alone. Every id must belong to this event's company
                location:
                  type: string
                  description: Slug of another location of the same day
          multipart/form-data:
            schema:
              type: object
              required: []
              properties:
                title:
                  type: string
                  maxLength: 255
                subtitle:
                  type: string
                  maxLength: 255
                  nullable: true
                description:
                  type: string
                  maxLength: 2048
                  nullable: true
                starts_at:
                  type: string
                  description: HH:mm wall clock in the event timezone, never a UTC offset
                duration:
                  type: integer
                  minimum: 1
                  maximum: 1440
                  description: Minutes. A multipart request may send it as a string
                type:
                  type: string
                  enum:
                    - generic
                    - break
                  default: generic
                image:
                  type: string
                  format: binary
                  nullable: true
                  description: >-
                    jpg, jpeg, png, webp, apng or avif, at most 1 MB. Requires
                    multipart/form-data. Null removes the stored image
                speakers:
                  type: array
                  items:
                    type: string
                  description: >-
                    Speaker sqids. Replaces the whole list billed on the
                    activity; [] removes them all, omitting the key leaves them
                    alone. Every id must belong to this event's company
                location:
                  type: string
                  description: Slug of another location of the same day
      responses:
        '200':
          description: Updated activity
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Activity'
        '403':
          description: >-
            The token is missing events:read, schedule:read or the schedule
            write scope for this operation
        '404':
          description: Not found, or belongs to another event, day or company
        '422':
          description: Validation error
      security:
        - bearerAuth:
            - events:read
            - schedule:read
            - schedule:update
components:
  schemas:
    Activity:
      type: object
      properties:
        id:
          type: string
          description: Activity sqid
        title:
          type: string
        subtitle:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        type:
          type: string
          enum:
            - generic
            - break
        starts_at:
          type: string
          description: HH:mm wall clock in the event timezone, never a UTC offset
        duration:
          type: integer
          description: Minutes
        ends_at:
          type: string
          description: Derived from starts_at and duration; read only
        image_url:
          type: string
          nullable: true
        location:
          type: string
          description: Slug of the location it sits in
        timetable_id:
          type: string
          description: Sqid of the day it sits on
        speakers:
          type: array
          items:
            $ref: '#/components/schemas/Speaker'
    Speaker:
      type: object
      properties:
        id:
          type: string
          description: Speaker sqid
        first_name:
          type: string
        last_name:
          type: string
          nullable: true
        name:
          type: string
          description: First and last name together
        email:
          type: string
          nullable: true
          description: Shown on the programme. Animo never sends a speaker email
        job_title:
          type: string
          nullable: true
        company_name:
          type: string
          nullable: true
          description: The organisation the speaker is billed from, not the Animo company
        short_bio:
          type: string
          nullable: true
        bio:
          type: string
          nullable: true
        avatar_url:
          type: string
          description: >-
            Always populated. A speaker with no uploaded photo gets a
            data:image/svg+xml;base64 initials placeholder
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: OAuth2 personal access token from User settings → API tokens

````

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