import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kiwihr: {
type: "app",
app: "kiwihr",
}
},
async run({steps, $}) {
const data = {
"query": `{ users { items { id email } } }`,
}
return await axios($, {
method: "post",
url: `${this.kiwihr.$auth.api_url}/api/graphql`,
headers: {
"x-api-key": `${this.kiwihr.$auth.api_key}`,
},
data,
})
},
})
Update an existing employee's record in kiwiHR. See the documentation
kiwiHR uses API keys for authentication. When you connect your kiwiHR account, Pipedream securely stores the keys so you can easily authenticate to kiwiHR APIs in both code and no-code steps.