---
title: "Create activity type for any allowed context"
method: POST
path: "/system/activity-type"
tags: ["System Activity Type"]
---

# Create activity type for any allowed context

`POST /system/activity-type`

Create activity type for any allowed context

## Request body

- SystemActivityTypeBodyParamDef
  - `name` string, required
  - `code` string, required
  - `description` string
  - `disabled` boolean
  - `order` integer, required
  - `icon` string
  - `context` 'agency' | 'agency-group', required
  - `subject_type` 'candidate' | 'client'

## Response `201`

Created activity type

- AdvancedSearchActivityTypesResponseDef
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `name` string, required
  - `code` string, required
  - `description` string
  - `disabled` boolean, required
  - `order` integer, required
  - `icon` string
  - `context` 'agency' | 'agency-group', required

## Other responses

- `400` — System activity type validation definition
- `401` — Failed to authenticate the user making the request
- `default` — Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
