getAttachments
FunctiongetAttachments(requestOptions: IGetAttachmentsOptions): Promise<{ attachmentInfos: IAttachmentInfo[] }>
Request attachmentInfos
of a feature by id. See Attachment Infos for more information.
import { getAttachments } from '@esri/arcgis-rest-feature-service';
//
getAttachments({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
featureId: 8484
});
Parameters
Parameter | Type | Notes |
---|---|---|
request | IGetAttachmentsOptions | Options for the request. |
Returns
Promise<{ attachmentInfos: IAttachmentInfo[] }>
A Promise that will resolve with the getAttachments()
response.