update

suspend fun <T : SolidResource> update(webId: String, resource: T, ifMatch: String? = null): T

Replaces an existing resource on the pod via HTTP PUT.

Pass ifMatch (the ETag from a previous read) to issue a conditional PUT that fails with a 412 error if the resource was modified concurrently. For RDF resources, prefer patch when only a subset of triples changes.

Throws

on failure.