Skip to content

Update Email Data

PATCH
/api/data/{id}
curl --request PATCH \
--url http://localhost:8000/api/data/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "is_used": true, "name": "example", "notes": "example", "tags": "example" }'
id
required
Id
integer
Media typeapplication/json
EmailDataUpdate
object
email
Any of:
string
is_used
Any of:
boolean
name
Any of:
string
notes
Any of:
string
tags
Any of:
string
Examplegenerated
{
"email": "example",
"is_used": true,
"name": "example",
"notes": "example",
"tags": "example"
}

Successful Response

Media typeapplication/json
Response Update Email Data Api Data Id Patch
object
key
additional properties
any
Examplegenerated
{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}