Profile Edit API - Publications
This sub-resource API will allow you to create, update, and delete publications of a member. See Publication Fields for a description of the fields available within this object.
Supported Methods
CREATE | PARTIAL_UPDATE | DELETE
CREATE
POST https://api.linkedin.com/v2/people/(\$params),id:{person ID})/publications
sample request body
{
"date": {
"month": 2,
"year": 2016,
"day": 2
},
"name": {
"localized": {
"en_US": "LinkedIn API Publication"
},
"preferredLocale": {
"country": "US",
"language": "en"
}
},
"description": {
"localized": {
"en_US": {
"rawText": "API!"
}
},
"preferredLocale": {
"country": "US",
"language": "en"
}
},
"publisher": {
"localized": {
"en_US": "LinkedIn"
},
"preferredLocale": {
"country": "US",
"language": "en"
}
},
"url": "http://www.developer.linkedin.com",
"authors": [
{
"memberId": "urn:li:person:123ABC"
}
]
}
}
Note
A successful response will return a 201 Created
HTTP status code. To record the created entity's id
, refer to the header x-linkedin-id
field.
PARTIAL UPDATE
POST https://api.linkedin.com/v2/people/(\$params),id:{person ID})/publications/{publication ID}
sample request body
{
"patch": {
"$set": {
"date": {
"day": 15,
"month": 5,
"year": 2016
},
"description": {
"localized": {
"en_US": {
"rawText": "New LinkedIn Developer API!"
}
},
"preferredLocale": {
"country": "US",
"language": "en"
}
}
}
}
}
Sample Json to delete one or more fields. If you attempt to delete a field that is mandatory, the API will return a 422 Error Response. See Publication Fields for allowed list of fields for this resource
sample request body
{
"patch": {
"$delete": [
"field1",
"field2"
]
}
}
DELETE
DELETE https://api.linkedin.com/v2/people/(\$params),id:{person ID})/publications/{publication ID}