Function createAnnotation
- createAnnotation(connectionOptions: {
apiUrl: string;
headers: Object;
}, newAnnotation: {
document?: { title?: string[] | undefined; dc?: { identifier?: string[] | undefined; } | undefined; highwire?: { doi?: string[] | undefined; pdf_url?: string[] | undefined; } | undefined; link?: { href: string; type?: string | undefined; }[] | undefined; };
group?: string;
permissions?: any;
references?: string[];
tags?: string[];
target?: { selector: { type: string; }[]; };
text?: string;
uri: string;
}): Promise<Annotation>
-
Parameters
-
connectionOptions: {
apiUrl: string;
headers: Object;
}
-
apiUrl: string
-
headers: Object
-
newAnnotation: {
document?: { title?: string[] | undefined; dc?: { identifier?: string[] | undefined; } | undefined; highwire?: { doi?: string[] | undefined; pdf_url?: string[] | undefined; } | undefined; link?: { href: string; type?: string | undefined; }[] | undefined; };
group?: string;
permissions?: any;
references?: string[];
tags?: string[];
target?: { selector: { type: string; }[]; };
text?: string;
uri: string;
}
-
Optional
document?: { title?: string[] | undefined; dc?: { identifier?: string[] | undefined; } | undefined; highwire?: { doi?: string[] | undefined; pdf_url?: string[] | undefined; } | undefined; link?: { href: string; type?: string | undefined; }[] | undefined; }
-
Optional
group?: string
-
Optional
permissions?: any
-
Optional
references?: string[]
-
Optional
tags?: string[]
-
Optional
target?: { selector: { type: string; }[]; }
-
Optional
text?: string
-
uri: string
See
createAnnotation: https://h.readthedocs.io/en/latest/api-reference/#tag/annotations/paths/~1annotations/post
Throws
ApiError