summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
author0xflotus <0xflotus@gmail.com>2020-05-14 18:49:48 +0200
committerGitHub <noreply@github.com>2020-05-14 18:49:48 +0200
commit78e51d51591dbd07dc8ebdc5569c52199496bbdd (patch)
tree33b8b65acc42f2f7ccf4ae0fe2c7edb411e4e193 /docs
parentMerge pull request #7003 from keithjgrant/survey-launch-fix (diff)
downloadawx-78e51d51591dbd07dc8ebdc5569c52199496bbdd.tar.xz
awx-78e51d51591dbd07dc8ebdc5569c52199496bbdd.zip
(docs): enabled syntax highlighting for http patch
Diffstat (limited to 'docs')
-rw-r--r--docs/custom_virtualenvs.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/docs/custom_virtualenvs.md b/docs/custom_virtualenvs.md
index 792cb25bcb..9b47c5d5ca 100644
--- a/docs/custom_virtualenvs.md
+++ b/docs/custom_virtualenvs.md
@@ -140,14 +140,16 @@ Assigning Custom Virtualenvs
Once you've created a custom virtualenv, you can assign it at the Organization,
Project, or Job Template level:
- PATCH https://awx-host.example.org/api/v2/organizations/N/
- PATCH https://awx-host.example.org/api/v2/projects/N/
- PATCH https://awx-host.example.org/api/v2/job_templates/N/
-
- Content-Type: application/json
- {
- 'custom_virtualenv': '/opt/my-envs/custom-venv/'
- }
+```http
+PATCH https://awx-host.example.org/api/v2/organizations/N/
+PATCH https://awx-host.example.org/api/v2/projects/N/
+PATCH https://awx-host.example.org/api/v2/job_templates/N/
+
+Content-Type: application/json
+{
+ "custom_virtualenv": "/opt/my-envs/custom-venv/"
+}
+```
An HTTP `GET` request to `/api/v2/config/` will provide a list of
detected installed virtualenvs: