Skip to main content

25 Search results for "content_type"

REST API / Using the REST API /

Getting started with the REST API

header values as values. For example, the following code will send a content-type header with a value of text/plain and a X-GitHub-Api-Version header with

GitHub Actions / Security / Security harden deployments /

Configuring OpenID Connect in JFrog

fetch_access_token env: ID_TOKEN: $ run: | ACCESS_TOKEN=$(curl \ -X POST \ -H "Content-type: application/json" \ https://example.jfrog.io/access/api/v1/oidc/token

REST API / Guides /

Scripting with the REST API and Ruby

header names as keys and header values as values. For example, to send a content-type header with a value of text/plain: Ruby octokit.request("POST /markdown/raw"

GitHub Actions / Manage workflows and deployments / Manage deployments /

Creating custom deployment protection rules

github+json" \ --header "Authorization: Bearer {jwt}" \ --header "Content-Type: application/json" \ --data \ '{ \ "repository_ids": [321]

Organizations / Manage organization settings /

Troubleshooting Azure private network configurations for GitHub-hosted runners in your organization

Network/NetworkSettings?api-version={api-version}&subnetId={subnetId}" \ --header 'Content-Type: application/json' \ --header "Authorization: Bearer {entra_token}"

REST API / Guides /

Scripting with the REST API and JavaScript

header names as keys and header values as values. For example, to send a content-type header with a value of text/plain and a x-github-api-version header with

GitHub Actions / Security / Security guides /

Automatic token authentication

--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ --header 'content-type: application/json' \ --data '{ "title": "Automated issue

GitHub Actions / Security / Security harden deployments /

Configuring OpenID Connect in cloud providers

IDTOKENURL}} -H "Accept: application/json; api-version=2.0" -H "Content-Type: application/json" -d "{}" | jq -r '.value') echo $IDTOKEN

GitHub Copilot / Build Copilot Extensions / Build a Copilot agent /

Configuring your Copilot agent to communicate with the Copilot platform

\ --url $AGENT_URL \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header "X-GitHub-Token: $RUNTIME_GENERATED_TOKEN"

REST API / Projects (classic) /

REST API endpoints for Project (classic) cards

Required The unique identifier of the content associated with the card content_type string Required The piece of content associated with the card HTTP response