---
title: "Create Agency Client activity"
method: POST
path: "/agency/{agency_id}/client/{client_id}/activity"
tags: ["Agency Client Activity"]
---

# Create Agency Client activity

`POST /agency/{agency_id}/client/{client_id}/activity`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency/{agency_id}/client/{client_id}/activity`
- Auth: HTTP basic and HTTP basic and HTTP basic

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required
- `X-Accept-Timezone` string

## Request body

- object
  - `activity_type` string, required
  - `description` string
  - `comment` string
  - `linked_entities` object[]
    - `entity_id` string: The id of the entity, note this doesn't have pattern matching as user don't have mongo object ids as ids
    - `entity_type` string, required: The type of the entity this object represents
    - `name` string: The name of the entity, note that either name or entity_id is required

## Response `201`

The agency client activity will be returned

- object
  - `activity_type` string, required
  - `description` string
  - `subject_candidate_name` string: This is a deprecated property, any value passed on this property will be ignored and will be removed in the future
  - `created_by_user` string: This is a deprecated property, any value passed on this property will be ignored and will be removed in the future
  - `created_by_user_name` string: This is a deprecated property, any value passed on this property will be ignored and will be removed in the future
  - `comment` string
  - `linked_entities` object[]
    - `entity_id` string: The id of the entity, note this doesn't have pattern matching as user don't have mongo object ids as ids
    - `entity_type` string, required: The type of the entity this object represents
    - `name` string: The name of the entity, note that either name or entity_id is required
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `activity_date` string, date-time, required
  - `created_by_context_id` string
  - `created_by_context_type` string

## Other responses

- `400`: Validation error on post
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `404`: Resource not found
- `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.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
