Skip to content

Commit 6c82d1f

Browse files
committed
docs: explain manual ACL POST for Splunk Cloud
1 parent 2912519 commit 6c82d1f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

client/acl.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ func (client *Client) UpdateAcl(owner, app, name string, acl *models.ACLObject,
9898
values.Set("perms.read", readPerms)
9999
values.Set("perms.write", writePerms)
100100

101+
// Splunk Cloud app ACL updates require a raw form-encoded POST body here; the
102+
// generic client.Post/object-encoding path can return 200 OK without persisting
103+
// the ACL change.
101104
req, reqErr := client.NewRequest(http.MethodPost, endpoint.String(), strings.NewReader(values.Encode()))
102105
if reqErr != nil {
103106
return fmt.Errorf("POST failed for endpoint %s: %s", endpoint.Path, reqErr)

0 commit comments

Comments
 (0)