Skip to main content
PUT
Create or replace activities

Authorizations

Authorization
string
header
required

Use an API key or OAuth access token. Enter only the token in the authorization dialog; requests send it as Authorization: Bearer <TOKEN>.

Create an API key in your workspace's Settings → API keys. Keys start with wm_api_ and only work in the workspace where they were created. Read-only keys can read data; creating, updating, or deleting data requires a read-write key.

OAuth access tokens are issued for connected Windmill applications.

Both token types use the authenticated user's workspace permissions. Each endpoint's permission requirements and the sharing settings of the requested items still apply.

Path Parameters

companyId
string
required

Company ID. A URL slug is also accepted. The caller must have access to this company.

Required string length: 1 - 128
Example:

"company-acme"

Body

application/json
activities
object[]
required

The activities to create or replace, from 1 to 1,000. Each type and externalId pair can appear once.

Required array length: 1 - 1000 elements
activityTypes
object[]

Activity types to create or update before the activities are written, so one request can define a type and send its activities. Each externalId can appear once. Requires permission to manage activities (activities.manage); without it, each entry fails and nothing is written.

Response

The activities are written. Returns each activity's id, in request order.

results
object[]
required

One entry per written activity, in request order.