Assistant

Update a prompt

PATCH
Updates a prompt

Path parameters

promptIdstringRequired
ID of prompts

Request

This endpoint expects an object.
prompt
stringOptional

Response

This endpoint returns an object
data
object
PATCH
$curl -X PATCH https://api.x.flatfile.com/v1//prompts/us_pr_YOUR_ID \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "prompt": "Combine first name and last name into a new column called Full Name"
>}'
Response
1{
2 "data": {
3 "id": "us_pr_YOUR_ID",
4 "createdById": "us_usr_YOUR_ID",
5 "accountId": "us_acc_YOUR_ID",
6 "prompt": "Combine first name and last name into a new column called Full Name",
7 "createdAt": "2021-01-01T00:00:00Z",
8 "updatedAt": "2021-01-01T00:00:00Z"
9 }
10}