# Update segment folder (legacy)

Update a segment folder.    *This endpoint is for Audience Studio legacy. For the latest Audience Studio, contact your Customer Success Representative.*

Endpoint: PATCH /audiences/{audienceId}/folders/{folderId}
Version: 1.0.0
Security: TdApikeyAuth

## Security:

  - `TdApikeyAuth` (unknown)
    apiKey in header Authorization

## Path parameters:

  - `audienceId` (integer, required)
    Master segment ID

  - `folderId` (integer, required)
    Segment folder to update

## Request body:

  - `application/json` (unknown)
    Segment Folder to update

## Request fields (application/json):

  - `name` (string)

  - `description` (string)

## Response 200:

  - `200` (unknown)
    Retrieves the segment folder which was updated
N.B. that `createdAt` can be `null`, meaning that it is not known
which user created the folder.

## Response 200 fields (application/json):

  - `id` (string)

  - `audienceId` (string)
    ID of the parent audience. For composable folders this carries
the composable audience id; the complete-vs-composable
discriminator lives on the parent audience entity, not on the
folder.

  - `name` (string)

  - `description` (string)

  - `createdAt` (string)

  - `updatedAt` (string)

  - `createdBy` (any)

  - `createdBy.id` (string)

  - `createdBy.td_user_id` (string)

  - `createdBy.name` (string)

  - `createdBy.thisKeyNeverHit` (string)

  - `updatedBy` (any)

