We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8534691 commit 229b53cCopy full SHA for 229b53c
src/JsonApiDotNetCore/Controllers/JsonApiController.cs
@@ -138,7 +138,7 @@ public virtual async Task<IActionResult> PostAsync([FromBody] T entity)
138
return UnprocessableEntity();
139
}
140
141
- if (!string.IsNullOrEmpty(entity.StringId))
+ if (!_jsonApiContext.Options.AllowClientGeneratedIds && !string.IsNullOrEmpty(entity.StringId))
142
return Forbidden();
143
144
await _entities.CreateAsync(entity);
0 commit comments