Creates a new note.
Parameters
MediaId
required
MediaId
requiredThe partner account Id that this note is for.
Attachment
required
Attachment
requiredName of the image file to upload. Including this parameter requires adding the header Content-Type: multipart/form-data
and the parameter example.png=@"/path/to/an/example.png"
, which specifies the location to the image file being updated. See the example request cURL. Is optional if the Content
parameter is used.
Content
required
Content
requiredThe plaintext content of the note. Is optional if the Attachment
parameter is used.
Type
optional
Type
optionalWhat type of interaction caused the note. Defaults to NONE
if not expressed.
View possible enum values | ||
---|---|---|
EMAIL | The noted interaction is an email exchange. | |
IM | The noted interaction is a text or instant message conversation. | |
NONE | The note is not founded on an interaction with the partner. | |
PHONE | The noted interaction is a phone call. |
Returns
Returns the status of the request and the URI of the newly created note. Returns an error if create parameters are invalid or if a required parameter is missing.
Example Request
curl 'https://api.impact.com/Advertisers/<AccountSID>/Campaigns/1000/Notes' \
-X POST \
-u '<AccountSID>:<AuthToken>' \
-H 'Accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-d 'Attachment=image.png' \
-d 'image.png=@"/path/to/an/image.png"' \
-d 'Content=This is a note.' \
-d 'MediaId=10000' \
-d 'Type=IM'
Example Response
{
"Status": "OK",
"Uri": "/Advertisers/<AccountSID>/Campaigns/1000/Notes/123456"
}