PUT
/posts/{id}
curl \
--request PUT 'http://localhost:8080/posts/{id}' \
--header "Content-Type: application/json" \
--data '{"title":"string","content":"string","postType":"string","privacy":"string","metadata":"string"}'
Request examples
{
"title": "string",
"content": "string",
"postType": "string",
"privacy": "string",
"metadata": "string"
}
Response examples (200)
{
"id": 42,
"title": "string",
"content": "string",
"postType": "string",
"metadata": "string",
"privacy": "string",
"createdAt": "2026-05-04T09:42:00Z",
"createdBy": {
"id": 42,
"username": "string",
"password": "string",
"email": "string",
"roles": [
{
"id": 42,
"name": "string",
"description": "string"
}
],
"createdAt": "2026-05-04T09:42:00Z",
"updatedAt": "2026-05-04T09:42:00Z",
"enabled": true,
"verificationToken": "string",
"expiryDate": "2026-05-04T09:42:00Z",
"authorities": [
{
"authority": "string"
}
],
"accountNonLocked": true,
"credentialsNonExpired": true,
"accountNonExpired": true
}
}