Skip to main content
POST
Write To A Protocol
If contentType is “image”, then the contentToAppend, contentToReplace, and/or contentToHead will need to be a JSON Object with the following properties:
  • uuid: (String) The uuid of the image. This can be found using after uploading the file using the https://new.scispot.io/files/store endpoint.
  • name: (String) The name of the image
If contentType is “json”, then the contentToAppend, contentToReplace, and/or contentToHead will need to be a JSON Object with the following properties:
  • elements: (array) This will serve as the base object. This array will contain all other elemennts that will be added into the protocol. Elements can either contain section, text, or file json objects as described below
Here are the structure of each element object. Currently only sections, texts, or files are supported
  • type: (String) The identifier of what this type this JSON object will be. Currently supports “text”, “section”, “text”
Section type only :
  • items: (array) An array of elements that will be embedded within a section. Note nested sections are not allowed
Text type only:
  • content: (string) The text to be added in
  • headers : (string) What header to use for the text. Currently supports “h1”, “h2’, “h3”, “h4”, “h5”, “h6”. (Optional)
  • bold : (boolean) Add bold formatting to the text) (Optional)
  • italics : (boolean) Add italics formatting to the text (Optional)
  • underline : (boolean) Add underline formatting to the text (Optional)
  • strikethrough: (boolean) Add strikethroughformatting to the text (Optional)
File Type only
  • uuid: (String) The uuid of the file. This can be found using after uploading the file using the https://new.scispot.io/files/store endpoint.
  • name: (String) The name of the file, eg. “file.csv”
  • fileType: (String) The type of the file, eg. “csv”
Example of a valid JSON for contentType “json”:
Validation notes: provide at least one of name, hrid, uuid; provide at least one of contentToAppend, contentToReplace, contentToHead. Provide one of name, uuid, or hrid and at least one of contentToAppend, contentToReplace, or contentToHead. contentType defaults to text and supports image and json payloads.

Authorizations

Authorization
string
header
required

Personal access token from Scispot Account → Personal Tokens

Body

application/json
name
string
uuid
string
hrid
string
contentType
enum<string>
Available options:
text,
image,
json
contentToAppend
object
contentToReplace
object
contentToHead
object
start_date
string
end_date
string

Response

OK

success
boolean