updateAttachment

Function

import { updateAttachment } from '@esri/arcgis-rest-feature-service';
//
updateAttachment({
  url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
  featureId: 8484,
  attachment: myFileInput.files[0],
  attachmentId: 306
});

Update a related attachment to a feature by id. See Update Attachment for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IUpdateAttachmentOptions

Options for the request.

Returns

Promise<IUpdateAttachmentResponse> - A Promise that will resolve with the updateAttachment() response.


Function defined in packages/arcgis-rest-feature-service/src/updateAttachment.ts:57