We have updated our Terms of Service, Code of Conduct, and Addendum.

Is there a way to use the API to `PATCH` a lookup table in a pack?

JP Bourget
JP Bourget Posts: 30 ✭✭
edited September 2023 in General Discussions

Hey - is there a way to use the API to PATCH a lookup table in a pack?

Tagged:

Best Answer

  • Raanan Dagan
    Raanan Dagan Posts: 101 mod
    edited September 2023 Answer ✓

    It looks like a format thing .. extra spaces / string?
    The one I used

    curl -X POST "http://192.168.56.254:9000/api/v1/version/commit"
    -H "accept: application/json" -H "Authorization: Bearer long_bearer_token_goes_here"
    -H "Content-Type: application/json"
    -d '{"message":"automation@cribl:commit","group":"default","files":["groups/default/data/lookups/host_destination.csv","groups/default/data/lookups/host_destination.yml"]}'
    

Answers